|
-
April 18th, 2001, 05:26 PM
#1
Sort By Date
Hi,
I have an access DB with a field (MailDateSent), I want to sort between 2 dates, my code below is not working.
Any help appreciated.
Regards,
Alan.
Date1 = txtDate1.Text
Date2 = txtDate2.Text
'SQL = "SELECT * FROM Customers WHERE (MailDateSent) >= Date1 and (MailDateSent) <= Date2 ORDER bY CompanyName"
Set Customers = DB.OpenRecordset(SQL, dbOpenDynaset)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|