marlow1208
Technical User
I am attempting to pass values from subreports to the main report and the resulting values are 0 rather that the correct value. Where is my error?
I am using a main report that contains 4 subreports. Each subreport contains a formula that creates a shared variable.
The formula in each subreport is as follows:
Subreport 1 CMMTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMMTDOpen;
CMMTDOpen := Count({MEM_MEMBER.MEM_ID});
Subreport 2 CMYTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMYTDOpen;
CMYTDOpen := Count({MEM_MEMBER.MEM_ID});
Subreport 3 HCMTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCMTDOpen;
HCMTDOpen := Count({MEM_MEMBER.MEM_ID});
Subreport 4 HCYTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCYTDOpen;
HCYTDOpen := Count({MEM_MEMBER.MEM_ID});
Each subreport is located in the details sections of the report.
I am attempting to pass each value to the main report using the following formulas in the main report:
Main Report CMMTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMMTDOpen;
Main Report CMYTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMYTDOpen;
Main Report HCMTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCMTDOpen;
Main Report HCYTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCYTDOpen;
I have placed the four formula fields in the main report in the last detail section of the report.
I am using a main report that contains 4 subreports. Each subreport contains a formula that creates a shared variable.
The formula in each subreport is as follows:
Subreport 1 CMMTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMMTDOpen;
CMMTDOpen := Count({MEM_MEMBER.MEM_ID});
Subreport 2 CMYTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMYTDOpen;
CMYTDOpen := Count({MEM_MEMBER.MEM_ID});
Subreport 3 HCMTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCMTDOpen;
HCMTDOpen := Count({MEM_MEMBER.MEM_ID});
Subreport 4 HCYTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCYTDOpen;
HCYTDOpen := Count({MEM_MEMBER.MEM_ID});
Each subreport is located in the details sections of the report.
I am attempting to pass each value to the main report using the following formulas in the main report:
Main Report CMMTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMMTDOpen;
Main Report CMYTDOpen formula:
Whileprintingrecords;
Shared NumberVar CMYTDOpen;
Main Report HCMTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCMTDOpen;
Main Report HCYTDOpen formula:
Whileprintingrecords;
Shared NumberVar HCYTDOpen;
I have placed the four formula fields in the main report in the last detail section of the report.