Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LIKE operator
Message
De
15/04/2005 08:09:07
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Access
Titre:
LIKE operator
Divers
Thread ID:
01005052
Message ID:
01005052
Vues:
61
Hello,

How do I use a LIKE operator in a sql string from VB6 to Access.

Right now i'm building my string like this :
"SELECT * FROM table WHERE field1 LIKE '*" & scriteria & "*' "

It does not work (I get nothing where I should get 9 records)... but if I copy the string into Access (as is from VB) all of the records are retrieved.

I guess the ODBC driver mixes the string ... How do I build the string properly?

Thanks in advance.
Ben Rail
Business Solutions
LOGI.design
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform