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
Solved

Passing data back from subreport

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

791 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