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

CR formula equivalent to sql syntax

Status
Not open for further replies.

Luvsql

Technical User
Apr 3, 2003
1,179
CA
In SQL Server, I would use isnull(field,0)<>0 to basically convert any values that are null to 0, so that I can then use it in a formula.

What's the equivalent of this in crystal?
 
Create a formula:

if isnull({table.field}) then 0 else
{table.field}

You could alternatively go to file->report options and check "convert nulls to default values".

-LB

 
I had this marked to try but since this field is a boolean when I set the field to equal false, it wasn't working.
 
Please explain what you mean, showing samples of the field, and also show what formula you tried.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top