Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql
Message
From
23/07/2002 11:09:48
 
 
To
23/07/2002 10:53:17
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Re: Sql
Miscellaneous
Thread ID:
00681185
Message ID:
00681683
Views:
22
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform