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!

Subreports and sum 1

Status
Not open for further replies.

mollow

MIS
Aug 7, 2001
20
GB
Hi,

I am writing a report that uses several subreports. I want to have a cumulative total box that takes the totals of all 4 subreports.

The problem is that occasionally 1+ subreport may not contain any data (as the link field connecting it to the report has no record for that searched) and consequently I get an #error message, which is annoying.

Does anyone know how to get around this? :)

Mol
 
You can try the Nz() function which turns a null into 0.

=Nz(Sub1)+Nz(Sub2)+Nz(Sub3)+Nz(Sub4)

HTH Joe Miller
joe.miller@flotech.net
 
Worked a treat mate, your a star!

Thanks,

Mol
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top