Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recordset FIND problems
Message
From
11/10/2001 17:45:42
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
11/10/2001 13:44:51
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
Visual Basic
Category:
COM, DCOM and OLE automation
Miscellaneous
Thread ID:
00566810
Message ID:
00567268
Views:
14
Eric is correct about the %. In Access you use * and in SQL you use a %. What you might be missing is the single quotes around your supplied variable.

e.g.
"SELECT * FROM tblMyTable LIKE " & strVariableName & "*;"

is different from:

"SELECT * FROM tblMyTable LIKE '" & strVariableName & "*';"

It sounds like your error message is interpreting the * as a SQL command because it is not inside quotes. So if you are using SQL, make sure you use a %, and if your field is a character/string type, ensure you use the single quotes.
Previous
Reply
Map
View

Click here to load this message in the networking platform