Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can this SQL work 1

Status
Not open for further replies.

fileman1

Technical User
Feb 7, 2013
152
GB
I am trying to find if 2 items are already in a recordset.

rs3.FindFirst "ID1 =" & PK1 & "KeywordID =" & PK2

It errors saying something missing in syntax.
 
lets assume that ID1 = 1, and PK1 = 2

rs3.FindFirst "ID1 =" & PK1 & "KeywordID =" & PK2
would resolve to
ID1 =1KeywordID =2

rs3.FindFirst "ID1 = " & PK1 & " AND KeywordID = " & PK2
This would resolve to
ID1 = 1 AND KeywordID = 2
 
Many thanks for the help, and clear explanation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top