The general method is to use a shared variable. This example is for a date or a currency amount, but you should be able to adapt it for a count (NumVar):
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
But note limits - Shared variables can only be used for things that Crystal will process after the subreport has been processed. I wanted to use a subreport to find the date for data selection in the main report, but this was not allowed.
It helps to give your Crystal version, since newer versions have extra options, and some extra problems. I use Crystal 8.5.
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
Madawc Williams (East Anglia, UK)
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)