Solved

Passing data back from subreport

Posted on 2012-03-28
3
402 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

747 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

13 Experts available now in Live!

Get 1:1 Help Now