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

Popular posts from this blog

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -