A Date field that contains no value is Null, so the correct test in code
is:
IsNull([MyDateField])
or in the context of an SQL statement:
WHERE [MyDateField] Is Null
Any field with no value is Null.
Text fields (including Memo and Hyperlink) can also contain a
Zero-Length-String, but in 99.99% of cases this is highly undesirable.
Unfortunately, Access 2000 and later suddenly decided to default the
field's Allow Zero Length property to Yes (opposite of previous
versions), so you now have to explicitly set the property to No *every*
time you add a Text field to a table.
The terms Empty, Nothing, and Missing to not apply to field values. Empty
is the value of an uninitialized Variant in VBA code. Nothing is the
value of an uninitialized object in VBA code. Missing is the value of an
optional paramter that was not supplied in VBA code.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Bill said:
If a table field defined as Date is un-initialized,
what is it, Empty, Null or zero length? Though
they are normally stored as 64 bit numbers, I
see that un-initialized fields are not displayed as
zero. Thus, it is not clear the proper way to test
the field to determine if it is un-initialized.