I have a report containing a main report and a subreport.
Users enter a year and a month on the main report. This is used to calculate financial information in two columns :
1. a current month total (for the month and entered)
2. a cumulative total (for all months up to and including the month entered).
I have the same two fields on the subreport, but when I run the report, the values on the subreport are blank.
I am using shared variables to pass the month from the main report to the sub report.
Code in main report :
whileprintingrecords ;
shared numbervar mth ;
mth := {?Month} ;
mth;
(?Month is the parameter field)
Code on sub report :
whileprintingrecords ;
shared numbervar mth;
mth;
I then use the variable 'mth' in my formulae on the subreport.
Any ideas ?
Users enter a year and a month on the main report. This is used to calculate financial information in two columns :
1. a current month total (for the month and entered)
2. a cumulative total (for all months up to and including the month entered).
I have the same two fields on the subreport, but when I run the report, the values on the subreport are blank.
I am using shared variables to pass the month from the main report to the sub report.
Code in main report :
whileprintingrecords ;
shared numbervar mth ;
mth := {?Month} ;
mth;
(?Month is the parameter field)
Code on sub report :
whileprintingrecords ;
shared numbervar mth;
mth;
I then use the variable 'mth' in my formulae on the subreport.
Any ideas ?