You need to use the Nz() function to handle Nulls.
On a case-by-case basis, you need to decide how you want to handle a Null
date. You're more than likely doing date comparisons, so to return a date
that is lower that any date you're likely to encounter, use Nz(Me!txtMyDate,
0). To return a date that is higher that any date you're likely to
encounter, use Nz(Me!txtMyDate, 99999).
Using zero (0) returns Dec 30th, 1899
Using 99999 returns October 13th, 2173
Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
---------------------------
> The Access 2002 code behind my maintenance form loops through a recordset
> of
[quoted text clipped - 11 lines]
> more
> than a dozen different queries depending on which dates are missing.