Solved

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

Posted on 2014-10-08
3
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

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

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 50

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

752 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