G
Guest
I am having trouble making the IIF stetment work with a
Sum on a report.
In a textbox I have this for a control source...
Sum(([TVisit]*[tax1]*0.01)+([TVisit]))
TVisit and Tax1 are controls in the reports detail.
When there are no records (null) in these controls, the
textbox displays '#Error' I want it to display '0'
I tried this...
=IIf(IsError(Sum(([TVisit]*[tax1]*0.01)+([TVisit]))),0,(Sum
(([TVisit]*[tax1]*0.01)+([TVisit]))))
But I still do not get a zero to display.
Tom
Sum on a report.
In a textbox I have this for a control source...
Sum(([TVisit]*[tax1]*0.01)+([TVisit]))
TVisit and Tax1 are controls in the reports detail.
When there are no records (null) in these controls, the
textbox displays '#Error' I want it to display '0'
I tried this...
=IIf(IsError(Sum(([TVisit]*[tax1]*0.01)+([TVisit]))),0,(Sum
(([TVisit]*[tax1]*0.01)+([TVisit]))))
But I still do not get a zero to display.
Tom