I have used this function in my Query and it works great. But I found that when I try to access the same day i.e between [1/1/03] and [1/1/03]
I get empty results. Oh, yes I know that 1/1/03 does exist.
What am I missing?
Thank you,
VADIMBAR
If you are storing the time value along with the date, i.e. you used
Now() to enter the data, then a query criteria for the end date of
7/14/2004 will NOT return records of 7/14/2004 unless their time value
is exactly midnight (the default time value in a Date field).
(7/14/2004 16:25:00 is later than 7/14/2004 00:00:00)
You can work around this.
You can simply manually add one day to the end date, i.e. enter
1/2/2004 when you only want records up to 1/1/2004
Or ...
Change the query parameter to:
between [Enter Start Date] and [Enter End Date] +1
You must then click on the Query Menu button and set the parameter
dialog to
[Enter Start Date] DateTime
[Enter End Date] DateTime
Now you can enter the exact ending date and Access will increase it by
one day.