Want IIF statement to show 0 when null value

Trisha

Registered User.
Local time
Today, 03:38
Joined
Jan 24, 2013
Messages
18
After hours of playing around i finally have my IIF statement working the proplem is now is that when the Value is null it gives a blank value on my Report. How do i get it to show the value of 0 when it is Null. can i use an isNull withen my IIf statement maybe nested what is best practice?

:banghead:
 
Try the Nz() function.
 
I have used the Nz Function as follows but it still isnt working still not giving me the result of 0
=Nz(Sum(IIf(([Handling]>#00:02:00# And [Going]="YES"),1)))
Have i used it incorrectly?
 
I have used the Nz Function as follows but it still isnt working still not giving me the result of 0
=Nz(Sum(IIf(([Handling]>#00:02:00# And [Going]="YES"),0)))
Have i used it incorrectly?

If you want it to show 0 for Nulls use a 0 and not a 1 at the end.
 
I think this is all you need !
Code:
Sum(IIf(([Handling]>#00:02:00# And [Going]="YES"), 1[COLOR=Red][B], 0)[/B][/COLOR])
 
I guess my services are no longer needed here. ;)
 

Users who are viewing this thread

Back
Top Bottom