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!

If NULL then return empty

Status
Not open for further replies.

mycrystalbaby

Programmer
Jun 16, 2005
42
0
0
US
I am using CR X with SQL 8.0.
I would like to write a formula to make sure, if any of the field is NULL then return empty.
If A=10 and B=NULL

A-B should return NULL.
How can I achieve this in Crystal X.
Thanks in advance.
 
Try:

Create a formula with nothing in it.

Then reference that formula as in:

IF ISNULL({table.a})
or isnull({table.b}) then
{@MyNullOutput}
else
totext({table.a}-{table.b})

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top