passing subreport value to mainreport crystal -
i have report contains subreport. trying value subreport field on main report. issue is not displaying on correct report, report after , subsequent reports. maybe not reset var correctly.
subreport header
whileprintingrecords; shared numbervar amount := 0;
subreport footer
whileprintingrecords; shared numbervar amount := {ap1.amount};
mainreport formula field
shared numbervar amount; amount;
i have subreport in details section ( tried put in report header - suppressing report anyway ). in details section have formula field displaying 0.00 on main report, if cycle through report pages desired value shows on report right after. linking subreport , main report contract no.
any appreciated. not declaring right or need set shared amount 0 somewhere?
thanks
on main report formula:
shared numbervar amount;
amount := amount;
Comments
Post a Comment