Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report #Error when summing and no records in subreport

Status
Not open for further replies.
Jul 6, 2005
52
GB

I have a report that contains 2 subreports, each with a total field. I have a control on the main report that sums the totals from the 2 subreports.

This works fine when both subreports have records but if one subreport has 0 records, I get a #Error. I’ve tried using IsNull and IsEmpty to get round this, but neither work.

Any clues?
 
Hi
I think you need HasData:
[tt]=IIf([SubreportControlName].[Report].[HasData],[SubreportControlName].[Report].[TextBoxName],0)[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top