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!

Show Null Values as Zeroes

Status
Not open for further replies.

haneen97

Programmer
Dec 10, 2002
280
US
Hi,

Is there a function in Crystal Reports to make a number field display a 0 when it is null?

Thanks a lot.

Mo
 
yes.. it is in report ->options.. convert null values to default.
 
If you don't want to change your database, you can write and display a Formula Field, eg:

if isnull {yourfield} then 0
else {yourfield}

This sort of logic can do other things, e.g. "No value", though then it would insist on totext({yourfield}) rather than mixing numeric and character.

All of this is Crystal 8.5. In a lot of cases it is useful to distinguish between a zero value and a null or unknown value. Madawc Williams
East Anglia
Great Britain
 
You'll find a lot of useful tips about nulls etc. on forum767 Madawc Williams
East Anglia
Great Britain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top