To pass data back from a subreport, use a shared variable. Make a formula field in the subreport like
Shared dateVar
V_Today := {LoadStatus.LastDLoad}
or
whileprintingrecords;
shared currencyvar WasSaved;
WasSaved:={#TotSaved};
WasSaved
To access it in the main report, create another formula field with
Shared dateVar
V_Today := V_Today
or
whileprintingrecords;
shared currencyvar WasSaved;
WasSaved
Note that the shared variable is only available in the section after the section which contains the subreport.
And as synapsevampire said, subreports are slow. They make a lot of work for computers, but nay save time for humans. You decide which is more important for your particular circumstances. The normal alternative is a Stored Procedure, which requires a knowledge of SQL.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.