Sounds as though your date field also includes time (you're probably using
Now to populate it, rather than Date)
Dates are stored as 8 byte floating point numbers, where the integer part
represents the date as the number of days relative to 30 Dec, 1899, and the
decimal part represents the time as a fraction of a day. Today (2 Mar, 2006)
is 38778, whereas noon today would be 38778.5. When you don't supply a
time, therefore, anything with a time for today won't be picked up.
Simply add one to the second date. If you're prompting in a query, you can
use BETWEEN [Start Date] AND [End Date] + 1, or BETWEEN [Start Date] AND
DateAdd("d", 1, [End Date])
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Akrt48 said:
Can anyone please explain to me why when I run a query for
between[date]and[date] I am always a day short of what I am asking for.
If I
ask for 01/01/06 to 15/01/06 I get 01/01/06 to 14/01/06 it completely
mystifies me. Thanks