buzcut
Programmer
- Dec 16, 2000
- 10
This may have been posted or answered previously, but I can't find the answer. I hope someone can help me here. I need to pass a running total based on a formula from a subreport to the main report. Problem is, all I get on the main report is 0.00. Works in the subreport just fine.
Here is the code:
On Subreport...
Running total rTOTPIPPMTS:
{ACCOUNTS.EntryType}=64
//sets to reset on change of patientId which is a group
gTOTPIP:
WhilePrintingRecords;
Shared CurrencyVar gTOTPIPPMTS;
gTOTPIPPMTS := {#rTOTPIPPMTS}
On MAIN report....
placed in the group footer:
WhilePrintingRecords;
Shared CurrencyVar gTOTPIPPMTS;
gTOTPIPPMTS
the subreport is placed in the group header of the main report.
I can't get the subreports' total to appear in the main report.
Any help?
Thanks!
Mister Ed
Here is the code:
On Subreport...
Running total rTOTPIPPMTS:
{ACCOUNTS.EntryType}=64
//sets to reset on change of patientId which is a group
gTOTPIP:
WhilePrintingRecords;
Shared CurrencyVar gTOTPIPPMTS;
gTOTPIPPMTS := {#rTOTPIPPMTS}
On MAIN report....
placed in the group footer:
WhilePrintingRecords;
Shared CurrencyVar gTOTPIPPMTS;
gTOTPIPPMTS
the subreport is placed in the group header of the main report.
I can't get the subreports' total to appear in the main report.
Any help?
Thanks!
Mister Ed