Warning: Be very careful using the BETWEEN syntax.
Unless you are absolutely certain that the datatime field contains only the date portion of the datetime (without hours, minutes or seconds), you would be much safer using:
Code:
BETWEEN #01/01/2007# AND #12/31/2007 23:59:59.998#
The syntax you used earlier could lose all the data for the ending date (except for the first instant - 00:00:00.000), if any hours, minutes or seconds are present. The .998 rounds down to the last instant of the date, while .999 often rounds up to the first instant of the next day.
The same caveat applies to
or
Rand