Hi Guys,
Can any one tell me whats wrong with my syntax in my Select statment below.
It runs if i just query field_1 on its own, but when I add the OR it wont go??
Any suggestions are very welcome.
Thanks
Set rs2 = db2.OpenRecordset("SELECT * " & _
"FROM table1 " & _
"WHERE field_1 = " & lngID & _ " or field_2 = " & lngID)
Can any one tell me whats wrong with my syntax in my Select statment below.
It runs if i just query field_1 on its own, but when I add the OR it wont go??
Any suggestions are very welcome.
Thanks
Set rs2 = db2.OpenRecordset("SELECT * " & _
"FROM table1 " & _
"WHERE field_1 = " & lngID & _ " or field_2 = " & lngID)