View Full Version : Total from 3 SubReports


PearlGI
08-20-2002, 08:10 AM
I've have a report which contains 3 sub-reports and the totals from these sub-reports form the calculations appearing on the main report.

This works fine until one of the sub-reports returns no data. Then the calc on the main form returns an error as the control the calc is based on no longer appears on the report.

Any ideas as to how to get around this?

Sohaila Taravati
08-20-2002, 11:46 AM
Use the Nz function on all of your subreports and that should solve your problem

Rich
08-20-2002, 03:53 PM
You have to use the HasData method, NZ will not work on no records, search here for examples of the HasData method

PearlGI
08-21-2002, 12:53 AM
Thanks Rich,

Now sorted.