The # delimiter is correct for literal dates within the SQL statement (and
in VBA also.)
When adding paramters to a query, do not add the # to the parameter name.
Internally, Access actually stores dates as real numbers, where the integer
part represents the date and the fraction part the time. You can see this
for yourself if you open the Immediate window (Ctrl+G) and enter:
? CDbl(Now())
Using text (e.g. may) inside the # is not correct.
For details on how Access interprets date entries, see:
International Date Formats in Access
at:
http://allenbrowne.com/ser-36.html

Signature
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
> On the query grid for a date field I can hardcode #5/7/2006# but find that
> using #may/7/2006# is more reliable as it's specific and unambiguous, ie
[quoted text clipped - 10 lines]
> somehow?
> Thanks.
Rob G - 30 May 2006 15:57 GMT
Great post Allen. I went to your website and you helped me resolve a real
nagging date problem that I had in my where clause. SQLDate did the trick.
> The # delimiter is correct for literal dates within the SQL statement (and
> in VBA also.)
[quoted text clipped - 27 lines]
> > somehow?
> > Thanks.
Doug F. - 30 May 2006 17:18 GMT
Thanks muchly.

Signature
Doug F.
> The # delimiter is correct for literal dates within the SQL statement (and
> in VBA also.)
[quoted text clipped - 27 lines]
> > somehow?
> > Thanks.