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

Defining Null Value 1

Status
Not open for further replies.

pineisland99

Instructor
Feb 13, 2007
22
US
I'm working on a formula which will add a 1 everytime there is a date in my field. Basically if my field (f422#Close_date) has a date, then a 1 is added.
If there is no date(empty) then 0.

How do you signify a null or empty set.. i tried this but it does not work:
if {f422#Close_date}) <> "" then
1
else
0

This did not work either:
if {f422#Close_date}) <> NULL then
1
else
0

Appreciate the help
 
Try if IsNull ({f422#Close_date})

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Beautiful:

I changed my formula to:
if isNull({f422#Close_date}) then
0
else
1

this worked,

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top