Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Search for date = 0/0/00 ??

Status
Not open for further replies.

Mainer

Programmer
Sep 18, 2002
9
US
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)

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top