How can I search a database for records which have a date field that is blank. I thought this would be simple but have yet to find the correct syntax. Any help is appreciated.
You may find that your database does not allow nulls in the date field, or it may, so you might do some experimenting with the following and adjust based on the findings:
If isnull(MyTable.MyDateField}
or
// This is an insanity check
(MyTable.MyDateField} < currentdate - 10000
or
// Check for
(MyTable.MyDateField} = date(0,0,0)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.