Solved

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

Posted on 2014-10-08
3
244 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 34

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of utilizing SQL Server functions 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 Ac…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now