You can share data between MAIN and SUBREPORTS by using a shared variable.
Your skimpy post shared nothing technical about where the subreport is within the main report, software version, and keep in mind that subreports issue a SQL statement for each execution so they are commonly avoided for performance resons.
An example of sharing information would be:
//subreport code
whileprintingrecords;
shared numbervar MyTotal:= sum({table.field})
Then in a section AFTER the subreport fires, use:
whileprintingrecords;
shared numbervar MyTotal;
"Subreport returned " & MyTotal
-k