Skip to Content
0
Former Member
May 30, 2014 at 08:18 PM

Passing a variable from subreport to main report

808 Views

Hello,

Was hoping to get some assistance on this issue I'm facing. I've got a sub-report that calculates a monthly goal based off the date selection criteria. And I'd like to pass this goal back to the main report.

In my sub-report, I created a new formula named ProcGoalVariable:

WhilePrintingRecords;

Shared Numbervar ProcedureGoal := cdbl({#ProcGoal})

While {#ProcGoal} is a running total I created for the sub-report and now I'd like to pass it back to the main report.

In the main report, I created a new formula named ProcGoalVariable:

Shared NumberVar ProcedureGoal;

ProcedureGoal;

But when I drop this into my report, it is returning a value of 0. In the screen shot, the Proc. Needed should actually equal the Proc Goal:

Any suggestions on how to pass this correctly?

Attachments

Variable.JPG (15.2 kB)