SQL Guidance Seems Simple Cant Figure it out

B

Brandon Johnson

Im having a little problems trying to make a sql statment to work. its
tossing me an error at the point where it says ([ItemCd] = " &
dmstemp!ItemCde & " OR [ItemCd] = 6758780)... However the full
statement is as follows:

allcriteria = "[CustNbr] = " & num & " AND ([ItemCd] = " &
dmstemp!ItemCde & " OR [ItemCd] = 6758780) AND [DCName] =
'MECHANICSVILLE';"

Keeping in mind also is that its the criteria to search a table with
dao so im using the findfirst. if anyone has any thoughts please let me
know. thankyou
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top