Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL command in VB6
Message
 
To
22/11/1998 21:11:23
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00160386
Message ID:
00160421
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform