Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql
Message
De
23/07/2002 11:09:48
 
 
À
23/07/2002 10:53:17
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:
00681683
Vues:
23
>field1 is a date, and the contents of the two variable are two dates dor example:
>
>variable1: 01-01-2000
>variable2: 31-12-2000
>
>I want to select all the records betwen this two dates.
>In vb i set the two varibles as strings

Try this one:
rst.Filter = "field1>=#" & variable1 & "# AND field1<=#" & variable2 & "#"
After the filter is set you should have a lower recordcount, and you can loop to EOF() with only the rows that match the filter. If you have an error message, be sure to include it on your response.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform