Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql
Message
De
22/07/2002 15:12:09
 
 
À
22/07/2002 11:50:29
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Re: Sql
Divers
Thread ID:
00681185
Message ID:
00681315
Vues:
23
>I need to execute an sql statment in a recordset.for example
>rst.open "SELECT * FROM rst WHERE field1 >= variable1 AND field1 <=variable2"
>
>Is this right.

Can't be done. You can use a Filter like so:
rst.Filter = "field1>=" & variable1 & " AND field1<=" & variable2
If var1 and 2 are strings then you need to enclose the values within quotes.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform