Click to See Complete Forum and Search --> : passing parameter from subreport to main report


varakal
March 18th, 2004, 04:12 PM
Hi.. I have a problem passing value from subreport to main report.

I have following code in a formula in a subreport, where I am using
shared variable. I should get #Total Billable Amount value into
total_asr_value. (#Total Billable Amount value is correct and I am
getting it).

if Isnull({#Total Billable Amount}) then
shared numberVar total_asr_value := 0
else
shared numberVar total_asr_value := CDbl({#Total Billable Amount})

In the main report, I defined in a formula as below:

shared numberVar total_asr_value


But I am not getting the value here.
Help is greatly appreciated. Thank you.