Link to home
Start Free TrialLog in
Avatar of Jasmin01
Jasmin01Flag for South Africa

asked on

Crystal Reports - When field is empty, display a zero

Hi, I have several formula fields that look similar to this:

if {DailySummary.Activity} = 9 then
SUM({DailySummaryPeople.ContractDriverNormalA})
else 0

Now, when the DailySummary.Activity for the date range entered is not 9, I want there to be a 0 displayed, but I get a blank field instead.  Can anyone help me to get this working?
Avatar of mcs0506
mcs0506
Flag of Pakistan image

Hi,
Please check data Type of {DailySummary.Activity}
if it is int then check is there any null stored



Dani
ASKER CERTIFIED SOLUTION
Avatar of GJParker
GJParker
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jasmin01

ASKER

I checked the DB, and it is of type int, and nulls are allowed.  I cannot make chnages to the DB.  Is there anything else I can do?
Thanks.  It worked