Solved

Passing data back from subreport

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
Photo Albums in PowerPoint Photo Albums are a very useful tool in PowerPoint and allow you quickly add a large number of images. The images can be formatted in a variety of ways so that you are able to create a professional looking presentation v…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
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 …

911 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

18 Experts available now in Live!

Get 1:1 Help Now