Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing values from subreport to subreport is not working

Status
Not open for further replies.

Roni1

Programmer
Dec 4, 2001
36
US
CR9 and Oracle9i

I created a shared variable from subreport A:
WhilePrintingRecords;
Shared NumberVar reportA := {#RunningTotal1}

I placed that variable in report B:
WhilePrintingRecords;
Shared NumberVar reportA

The value on both subreports are in GF1.

In subreport A that value is:
100
150
180

In subreport B that value is:
180
180
180

How can I correct the problem so the subreport B is:
100
150
180

Thanks,
Ron
 
If the above example data is accurate, it sounds like you're trying to pass 3 values in the first subreport to the second subreport.

If you have the subreport A returning a single value, then passing it to the subreport B, then there's another grouping and you are expecting another value, then your code should be correct.

One step you might take to assure that they are processed in the proper order would be to right click the section and select insert section below, then place subreport B in the new section.

If you do have 3 values being returned at once, then you'll need 3 variables or an array.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top