Solved

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

790 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