Display 0 in blank or no data fields

wasim_sono

Registered User.
Local time
Today, 23:33
Joined
May 29, 2008
Messages
33
I created a report with crosstab query. When I run the report it shows data and some fields which have no data display as blank. I want to replace 0 rather than blank or spaces.

I used
Code:
 NZ([SumOfAmount],0)

and
Code:
IIF([SumOfAmount]="",0,[SumOfAmount])

but doesn't work and give space error.

I really grateful for ur replies.
 
on the crosstab query, edit in SQL view:

Transform Sum(Nz(Amount, 0))
 
I tried but not working.
 
Really? Saying its not working isn't helpful for us to help you.
What exactly happened when you tried arnel's suggestion?
 
why not use the format property?

0.00;-0.00;0.00;0.00
 
Thanks to all who give their precious time. Actually I'm using nz function wrongly. but thanks God as well as all of you that I identify the problem and resolve the matter.:)
 

Users who are viewing this thread

Back
Top Bottom