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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUERY PROBLEM

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
This query


"SELECT DETAILS.* FROM DETAILS WHERE DETAILS.FIRST LIKE 'A*';"

is takin A* as a literal instea of searching the database for DETAILS.FIRST that starts with 'A' when run from VBA.
The same query works fine when run from access.
Help me out on this
Thank you
 
the following:

"SELECT * FROM DETAILS WHERE FIRST LIKE " & chr(39) & "A*" & chr(39)

will get the string constructed as VBA needs it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top