Douglas J. Steele
2004-06-25 16:36:46 UTC
You may have some problems if you're using dd/mm/yyyy format: Access doesn't
always work well with that format.
Try using the following criteria with the date field:
BETWEEN CDate([DateFrom]) AND CDate([DateTo])
When you run the query, a prompt will appear for DateFrom. Once the user
enters that, another prompt will appear for DateTo.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)
always work well with that format.
Try using the following criteria with the date field:
BETWEEN CDate([DateFrom]) AND CDate([DateTo])
When you run the query, a prompt will appear for DateFrom. Once the user
enters that, another prompt will appear for DateTo.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)
I am using access 97.
I have a table with 5 fields(1 date fields). I want to create a
query/report dynamically depending upon the users requirement.I have a table with 5 fields(1 date fields). I want to create a
1) i want to know how i can get input from the user
2) how to generate the query out of it
i.e. if the user keys in 10/12/2003 and 15/12/2003, than i want to list
only those records who's date field is in between these range.2) how to generate the query out of it
i.e. if the user keys in 10/12/2003 and 15/12/2003, than i want to list
Thanks in advance.