I have a main report that has a subreport to it. On the sub report I
have a running total. If there are no entries in the sub-report source
table the sum total returns the #Error message for the running sum
total.
I want to watch for this on the main report and replace the #Error with
a 0 (Zero) in the control on the main report.
I can not get this to happen. I have tried both an IF statement in VBA
and the IIF in the control itself. Both work fine if there is a value in
the sub-report, but when there is not I get the #Error.
I tried to use IsNull(My Control) to watch for the error but this is not
working.
Anyone know how I do this?
Michael Charney
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!