?
Solved

Passing data back from subreport

Posted on 2012-03-28
3
Medium Priority
?
413 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
1 Comment
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
The advancement in technology has been a great source of betterment and empowerment for the human race, Nevertheless, this is not to say that technology doesn’t have any problems. We are bombarded with constant distractions, whether as an overload o…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

864 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