Hello,
I am using v10 of crystal. I have a main report with several subreports. The subreports have the details suppressed and are showing the group totals only. There are grand totals calculated but the fields are suppressed.
I am trying to pass the grand total values from each of the subreports into the main report. The subreports are placed in the group footer section of the main report.
The shared variable for the grand totals is placed in the report footer section of the main report.
This is my subreport formula for the variable:
whileprintingrecords;
shared numbervar d1ly:=Sum ({@day1_price_ly})
This is my formula in the main report:
whileprintingrecords;
shared numbervar d1ly;
d1ly:=d1ly
The problem is I am only getting value of the last value in the group instead of the value from the whole subreport.
Can anyone assist as to what I am doing wrong?
Thanks,
Stacey
I am using v10 of crystal. I have a main report with several subreports. The subreports have the details suppressed and are showing the group totals only. There are grand totals calculated but the fields are suppressed.
I am trying to pass the grand total values from each of the subreports into the main report. The subreports are placed in the group footer section of the main report.
The shared variable for the grand totals is placed in the report footer section of the main report.
This is my subreport formula for the variable:
whileprintingrecords;
shared numbervar d1ly:=Sum ({@day1_price_ly})
This is my formula in the main report:
whileprintingrecords;
shared numbervar d1ly;
d1ly:=d1ly
The problem is I am only getting value of the last value in the group instead of the value from the whole subreport.
Can anyone assist as to what I am doing wrong?
Thanks,
Stacey