Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL command in VB6
Message
 
À
22/11/1998 21:11:23
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00160386
Message ID:
00160421
Vues:
25
>mFrom = txtFrom.text
>mTo=txtTo.text
>
>mSQL="Select * from Cust where CCode between " &mFrom& " and " & mTo

What type are your parameters (numeric, date or text)?

If they are text, your SQL query should look like:
Select * from Cust where CCode between '" & mFrom & "' and '" & mTo & "'"
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform