Solved

Passing data back from subreport

Posted on 2012-03-28
3
406 Views
Last Modified: 2012-05-10
I have a subreport in whcih I am passing a value back to the main report to be used with calculations. The formulas I have to pass them back work fine. However, the returned info seems to befor the next record down

What I see:

Main - subreport
1               0
2               1
3               2
4               3

What I was hoping to see:

Main - subreport
1              1
2              2
3              3
4              4

I am pretty sure I am missing a NULL formula. I have the reset formula as shown:

whileprintingrecords;
shared numbervar commitments :=0;

Thank you for your help!
0
Comment
Question by:kpwhitte
[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
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 37779576
THe subreport must be in a section before the section you need them in the man report.
Subreports are the last thing evaluated in a section (or at least that is my experience) so if the main report formula is in the same section it evaluates before the subreport runs so it uses the value from the prvious record.

Right click the section with the subreport in the left margin
Click SECTION EXPERT
Click the button for INSERT SECTION BELOW
Drag the new section so it is ABOVE the original section
CLick OK
Drag the subreport to the new blank section

mlmcc
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

In this article I will provide some simple productivity hacks that will help you use Google to specifically show results from any web site (Experts-Exchange.com in my example), with minimal effort in Chrome and Firefox. I've seen a common theme a…
I recently resolved a client's Office 2013 installation problem and wanted to offer an observation that may help you with troubleshooting similar issues. The client ordered three Dell Optiplex system units with the Windows 7 downgrade option inst…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

749 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