Hi All
I am getting the "Expected: End of Statement" message from my code:
strSQL = strSQL & "DLookUp("[ID]", "qryListCopiesT oDelete", "[ID]" >1)))"
"[ID]" gets highlighted as an error! If I remove the quotation marks "qryListCopiesT oDelete" becomes the problem etc. When I remove all quotes from the above script the warnings go but the script fails to work! How do I get the DLookup to read the query?
All queries were built in Query Design and work as plain queries, but when I place the code into vb - NOTHING!
Help please, I have spent ages on the web but to no avail.
I am getting the "Expected: End of Statement" message from my code:
strSQL = strSQL & "DLookUp("[ID]", "qryListCopiesT oDelete", "[ID]" >1)))"
"[ID]" gets highlighted as an error! If I remove the quotation marks "qryListCopiesT oDelete" becomes the problem etc. When I remove all quotes from the above script the warnings go but the script fails to work! How do I get the DLookup to read the query?
All queries were built in Query Design and work as plain queries, but when I place the code into vb - NOTHING!
Help please, I have spent ages on the web but to no avail.
Comment