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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total Sum for report and subreports... 1

Status
Not open for further replies.

mollow

MIS
Aug 7, 2001
20
GB
Hi,

Wondering if anyone out there can help me with a problem.

I have a report that calculates an invoice. The invoice contains 2 subreports.

I would like to calculate a total sum of these subreports and can easily do so when both subreports contain data. The problem is that occasionally the second subreport will contain no data and consequently i get an #error message in my total sum field.

Anyone have any ideas?

Thanks in advance,

Mike
 
You can check for an error using the IsError function:

=iif(IsError(x+y),x,x+y)

HTH Joe Miller
joe.miller@flotech.net
 
Excellent,

Worked a treat mate, many thanks.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top