I am trying to reset a variable that is passing from my subreport to my main report. I have tried placing the reset formula in the header and footer of the main report and it is not working - the value from the previous shared variable carries over until there is a new value. Here are my formulas:
(subreport)
Report Header:
whileprintingrecords;
shared numbervar subreptotal:= ({@PT TOTAL})
(main report)
GroupFooter1a: Amount Reset
WhilePrintingRecords;
shared NumberVar subreportotal := 0;
GF1b: Subreport
GF1c:
whileprintingrecords;
shared numbervar subreptotal;
subreptotal + (Sum ({@sum charges}, {case_record.cr_urn}));
GF1c:
whileprintingrecords;
shared numbervar subreptotal;
subreptotal + (Sum ({@SUPPLY COST}, {case_record.cr_urn}));
I only have one group and the subreport is linked on the group's field ({case_record.cr_urn} = {case_record.cr_urn})
I am having the same problem as explained in thread149-120009 but I am not using a version of crystal that this bug/patch seems to apply. I am using Crytal 11. Any help would be appreciated!
(subreport)
Report Header:
whileprintingrecords;
shared numbervar subreptotal:= ({@PT TOTAL})
(main report)
GroupFooter1a: Amount Reset
WhilePrintingRecords;
shared NumberVar subreportotal := 0;
GF1b: Subreport
GF1c:
whileprintingrecords;
shared numbervar subreptotal;
subreptotal + (Sum ({@sum charges}, {case_record.cr_urn}));
GF1c:
whileprintingrecords;
shared numbervar subreptotal;
subreptotal + (Sum ({@SUPPLY COST}, {case_record.cr_urn}));
I only have one group and the subreport is linked on the group's field ({case_record.cr_urn} = {case_record.cr_urn})
I am having the same problem as explained in thread149-120009 but I am not using a version of crystal that this bug/patch seems to apply. I am using Crytal 11. Any help would be appreciated!