you can use shared variables to pass the value from the sub to the main
make sure you dont surpress anything or the value wont be passed. make the fields small and white. and the sub as small as possible. place the shared variables below the sub.
SHARED VARIABLES
Shared variables are used to pass values from sub report to the main report.
(if you want to summarize totals from a sub report with totals from the main report, you would use the following formulas to pass the value from the sub report to main report.
SUB REPORT whileprintingrecords;
SHARED Numbervar X := x + {field};
MAIN whileprintingrecords;
SHARED Numbervar X;
X
Shared variables can not be suppressed.
Make the font white and the field very small.
They must be placed below the subreport to retrieve the value.