Subtotal from subreport on main report

  • Thread starter mattc66 via AccessMonster.com
  • Start date
M

mattc66 via AccessMonster.com

I am having trouble getting the subtotal from a sub report on my main form.

On the subReport in the page footer I have the following:
ReportName: rptSubOrderDetailList
ControlName: txtExtListPrice
=Sum([ExtListPrice])

On my main Report
ControlName: txtSubTotal
=rptSubOrderDetailList.Report!txtExtListPrice

I am getting #Error when I view the report.
 
M

Marshall Barton

mattc66 said:
I am having trouble getting the subtotal from a sub report on my main form.

On the subReport in the page footer I have the following:
ReportName: rptSubOrderDetailList
ControlName: txtExtListPrice
=Sum([ExtListPrice])

On my main Report
ControlName: txtSubTotal
=rptSubOrderDetailList.Report!txtExtListPrice

I am getting #Error when I view the report.


First off, you can not use Sum in the Page Header/Footer
sections, use the Report header/Footer instead. Second,
page header/footers (and the Page event) are ignored in
subreports.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top