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

How to check for Null

Status
Not open for further replies.

crystal28

Programmer
Oct 23, 2002
108
0
0
US
If Not IsNull(ToText((currentdate-date({Command.ShipDate})),'00')) Then
ToText((currentdate-date({Command.ShipDate})),'00')
Else '00'

The above formula doesnt compile and says i need to give a field in If section

How do i write this without errors

I need to get the current date - date value of a field
and if its null then return '000'
 
Also there is a formula in which i am concatanating the result of 3 other formulas,even when one of those is blank or null the formula that concatanates is blank..why is this and how to have data in it even if one of the other formulas are null or blank..
 
If IsNull({Command.ShipDate}) then '00' else
ToText((currentdate-date({Command.ShipDate})),'00'))

Software Sales, Training, Implementation and Support for Macola, eSynergy, and Crystal Reports

"What version of URGENT!!! are you using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top