Solved

How get run sum field value from a sub-report to print on a report

Posted on 2014-10-08
3
249 Views
Last Modified: 2014-10-11
I have a report that has a sub-report.  The sub-report has a run sum value named txtSumRptRunSum that I'm trying to get onto the main report.  I've tried this as the control source of the main report's field but it doesn't work..

=[Reports]![subrptInvoiceDetail]![txtSumRptRunSum]

--Steve
0
Comment
Question by:SteveL13
3 Comments
 

Author Comment

by:SteveL13
ID: 40369259
All I get is #Name?
0
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 250 total points
ID: 40369351
Since there are many instances of [Reports]![subrptInvoiceDetail]![txtSumRptRunSum] (one for each row), the main report has no clue which one of them you want to display.  The only subreport/subform fields you can show in the mainreport/form come from the header or footer sections since those only occur ONCE for the report/form.

Add a control with a =Sum(something) ControlSource.  Then you can reference that control on the main report/form for display.
0
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 250 total points
ID: 40370052
Try with:

=[Reports]![NameOfParentReport]![TheNameOfTheSubreportControl].Report![txtSumRptRunSum]

or, if SumRptRun is the field you sum up in txtSumRptRunSum:

=Sum([Reports]![NameOfParentReport]![TheNameOfTheSubreportControl].Report![SumRptRun])

/gustav
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question