picky
Remember that not everyone has his/her Short Date format set (in Regional
Settings in the Control Panel) to a format that Access will recognize. If,
for instance, the Short Date format is dd/mm/yyyy, that will fail.
Since you have no control over the user's Short Date format, you'd always
best off using
MsgBox DCount("*", "[dd]", "[ndate] = " & Format(Me.aa, "\#yyyy\-mm\-dd\#"))
/picky
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Rick Brandt" wrote in message
...
To Jon, you do not need to use Nz() around your DCount() because DCount()
never returns Null. This should work...
MsgBox DCount("*", "[dd]", "[ndate] = #" & Me.aa & "#")