Sorry I wasn't clear, but you assume well. Yes the variable return the same value for all records and it is the value in the last record in the sub report.
The value is a product of a formula result is showed in the subreport which is a already created report, that I use as a subreport.
In the main report I paste the formula with the shared variable that bring the value from the sub report eg. main_inb
Whileprintingrecords;
Shared numbervar inbTos;
inbTos
In the sub report,
Whileprintingrecords;
Shared numbervar inbTos;
Global numbervar nTOS;
inbTos := nTOS (This value come from another formula that calculate the TOS in the subreport and is showed in the detaile section with a diff value for each record)
eg
rec1 00:59:04
rec2 02:04:50
rec3 01:02:75
etc.
I want to see the same values in the main report.
Thanks
-R-
Edited by rlassalle - 10 Aug 2012 at 10:20am