D
Darrell
I have a main report with 3 subreports and I want to display totals from
each subreport and grand totals in the report header of the main report.
What is the best way to do this?
Allen Browne posted the following response to a user back in 2003
offering a method. But, I can't get the
[rptInvoiceDogs].[Report].[HasData]" (adjusted to my specific
report/control names, of course) to be recognized.
"... No code is needed. At design time, set the Control Source
of the text box to something like this:
=IIf([rptInvoiceDogs].[Report].[HasData],
Nz([rptInvoiceDogs].[Report]![txtSumSalesPrice],0), 0)
+ IIf([rptInvoiceCharges].[Report].[HasData],
Nz([rptInvoiceCharges].[Report]![txtSumTotCharge],0), 0)
+ IIf([InvoiceAdjustments].[Report].[HasData],
Nz([InvoiceAdjustments].[Report]![txtAdjTot],0), 0)"
Any help is greatly appreciated.
Darrell
each subreport and grand totals in the report header of the main report.
What is the best way to do this?
Allen Browne posted the following response to a user back in 2003
offering a method. But, I can't get the
[rptInvoiceDogs].[Report].[HasData]" (adjusted to my specific
report/control names, of course) to be recognized.
"... No code is needed. At design time, set the Control Source
of the text box to something like this:
=IIf([rptInvoiceDogs].[Report].[HasData],
Nz([rptInvoiceDogs].[Report]![txtSumSalesPrice],0), 0)
+ IIf([rptInvoiceCharges].[Report].[HasData],
Nz([rptInvoiceCharges].[Report]![txtSumTotCharge],0), 0)
+ IIf([InvoiceAdjustments].[Report].[HasData],
Nz([InvoiceAdjustments].[Report]![txtAdjTot],0), 0)"
Any help is greatly appreciated.
Darrell