D
David Chase
I have a report and an embedded subreport in a break footer. In the break
footer I have totals that sum up detail records and also add in amounts from
the linked subreport. If the linked subreport has at least 1 record in it
the totals are fine. However, if the subreport does not contain any records
I get #Error in the total field on the main report.
I have tried several things like using IIF(IsNull(...) etc. but I still get
an error. The report total field contains something like this:
=[TotalDetail]+IIf(IsNull(Reports!MainReport!subreport.report!field),0,Repor
ts!MainReport!subreport.report!field)
originally I did not have the IsNull and I got the #Error which I
understand, but why now? Thanks.
David
footer I have totals that sum up detail records and also add in amounts from
the linked subreport. If the linked subreport has at least 1 record in it
the totals are fine. However, if the subreport does not contain any records
I get #Error in the total field on the main report.
I have tried several things like using IIF(IsNull(...) etc. but I still get
an error. The report total field contains something like this:
=[TotalDetail]+IIf(IsNull(Reports!MainReport!subreport.report!field),0,Repor
ts!MainReport!subreport.report!field)
originally I did not have the IsNull and I got the #Error which I
understand, but why now? Thanks.
David