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

Determine Field = 0 and "Null" Field

Status
Not open for further replies.

fort

Programmer
Aug 28, 2002
14
US
I am using Windows 2000 and Crystal Reports 8. I have been trying to determine a field which is either null or a field = 0. I have tried (IsNull{Field} or {Field} = 0. Any suggestions??

Thanks!!
 
Try the following:

IsNull({Fieldname}) or
length(trim({Fieldname}))=0 or
{Fieldname}=0

Software Training and Support for Macola, Crystal Reports and Goldmine
251-621-8972
dgilsdorf@mchsi.com
 
I failed to mention this for a currency field. I tried it stating--

If (IsNull({Field} or ({Field} = 0)) then..

Any more ideas??
Thanks!!
 
Did you try my syntax?

Software Training and Support for Macola, Crystal Reports and Goldmine
251-621-8972
dgilsdorf@mchsi.com
 
Your parenthesis are in the wrong place. It needs to be:

IsNull({field}) or {field} = 0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top