Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recordset FIND problems
Message
De
11/10/2001 17:45:42
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
11/10/2001 13:44:51
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
Visual Basic
Catégorie:
COM, DCOM et OLE automation
Divers
Thread ID:
00566810
Message ID:
00567268
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform