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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing dates in crystal syntax

Status
Not open for further replies.

khayr

Technical User
May 8, 2003
7
CA
Hello,

I'm trying to build a query that returns records where the date field has not been set. What do I compare the date to?

i.e. date = ????

empty string '' does not work, nor does null.

Thanks.
 
This is database/column dependent, which you didn't share.

If it hasn't been set, then using the following might work:

isnull({table.field})

Or you might use something like:

trim(totext({table.field})) = "", but the performance might suffer.

Or

totext({table.field})) = " / / "

Is the field nullable? What type of database? WHat type of field, a date or a datetime?

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top