Hi,
Is the date a constant in your query? I mean, if you typed a fixed,
hard coded date, you should use #, as in #31-12-2004#, not 31-12-2004
which is two subtractions, not a constant (hard coded) date. You don't use
# around a name that contains a date, just around a physical hard-coded
constant date.
If it is a parameter for a full date, try
CDate( myDateParameter )
rather than just the name of the parameter. That would force Access to
recognize the parameter value (by default, a variant, so, anything) to be a
date, rather than a string, or whatever it may be mislead to imagine what
the parameter represent. Also, to make all chances on your side, be sure you
use the date parts as in your locale regional settings: mm-dd-yyyy for US,
dd-mm-yyyy in almost all other English countries, yyyy-mm-dd for most
other European countries. Last note, if you use # delimiter, you should
preferably use US sequence, irrelevantly to your regional setting.
Hoping it may help,
Vanderghast, Access MVP