Link to home
Start Free TrialLog in
Avatar of ivanc
ivanc

asked on

SQL - Between ... AND

I have a SQL query that queries and Access 2000 database for the records between a particular period  The declarations are as follows

txtdate1 as textbox
txtdate2 as text box

ADODC.recordsource = " Select * from Sale where Hdate between " & txtdate1.text  & " AND " & txtdate2.text

ADODC.refresh

The result of the query does not alter the recordsource.  I think there is something wrong with query

Tks in advance

Ivanc
ASKER CERTIFIED SOLUTION
Avatar of deighton
deighton
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ivanc
ivanc

ASKER

Tks for your prompt answer