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!

Date compare.

Status
Not open for further replies.

perezgh

Programmer
Jan 22, 2003
8
US
Is there a way to compare a date field to blank/nulls/spaces? Say I want a list of records where the "end-date" is blank.

thanks

G-
 
Use a record selection formula such as:
-------------------------
IsNull({Your_Date_Field})
-------------------------

hth,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
For blanks you could use ToText({Your_Date_Field}) = "" though your DB may not allow spaces in date fields.

If your CR is set to change NULLs to default values, I was given this formula in this forum that works Length(ToText({Your_Date_Field}) < 2).
James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top