If you create them as shared variables in the subreport, you can also declare them and then reference them in calculations in the main report, although the calculation formula must be placed in a section of the main report somewhere below the one containing the subreport.
-LB