Hi,
i am having this problem with shared variables:
1.Main report in the report footer GrandTotal of MTD Sales (i need to pass this to subreport)
2.subreport in the repor theader Sum(MTDGoals) (if i put this in other section of the report header i get 0)
Main report (define the shared var):
//@Share_MTD
whileprintingrecords;
shared numbervar x:=sum(@MTD);
x;
subreport (catch the shared var):
//@Variance_MTD
whileprintingrecords;
shared numbervar x
if Sum(MTDGoals)<> 0 then
Sum(MTDGoals)%x
else
0
problem:for @Variance_MTD i am getting always 0
everywhere i place it in the subreport...
any idea??
help please...thx
i am having this problem with shared variables:
1.Main report in the report footer GrandTotal of MTD Sales (i need to pass this to subreport)
2.subreport in the repor theader Sum(MTDGoals) (if i put this in other section of the report header i get 0)
Main report (define the shared var):
//@Share_MTD
whileprintingrecords;
shared numbervar x:=sum(@MTD);
x;
subreport (catch the shared var):
//@Variance_MTD
whileprintingrecords;
shared numbervar x
if Sum(MTDGoals)<> 0 then
Sum(MTDGoals)%x
else
0
problem:for @Variance_MTD i am getting always 0
everywhere i place it in the subreport...
any idea??
help please...thx