Tech2377
Programmer
- Nov 13, 2007
- 81
I am using the following Shared Variables, but getting 0's in the calculation field in the Main Report
Main Report - Header
Name: Decl_Vars WhilePrintingRecords;
Shared NumberVar NumErrors1:=0;
SubReport
Name: CalNumErrors1
WhilePrintingRecords;
Shared NumberVar NumErrors1;
NumErrors1 := {#RTot_NumErrors1}
Main Report Group Footer
Name: CalNumErrorPercent
WhilePrintingRecords;
Shared NumberVar NumErrors1;
NumErrors1 / {#Rtot_NonError1}
This is grouped by date (day) so in the Group Header (Main report)
Reset: Main Report Group Header
Name: Reset_NumErrors1
WhilePrintingRecords;
Shared NumberVar NumErrors1 :=0
In the main report where I put the CalNumErrorPercent I get 0s
In the subreport (Group Footer) I checked the variable it does give me the correct number count.
Main Report - Header
Name: Decl_Vars WhilePrintingRecords;
Shared NumberVar NumErrors1:=0;
SubReport
Name: CalNumErrors1
WhilePrintingRecords;
Shared NumberVar NumErrors1;
NumErrors1 := {#RTot_NumErrors1}
Main Report Group Footer
Name: CalNumErrorPercent
WhilePrintingRecords;
Shared NumberVar NumErrors1;
NumErrors1 / {#Rtot_NonError1}
This is grouped by date (day) so in the Group Header (Main report)
Reset: Main Report Group Header
Name: Reset_NumErrors1
WhilePrintingRecords;
Shared NumberVar NumErrors1 :=0
In the main report where I put the CalNumErrorPercent I get 0s
In the subreport (Group Footer) I checked the variable it does give me the correct number count.