You need to create a new formula in the subreport and place it in the header:
WhilePrintingRecords;
Shared NumberVar MyVar:=0
That will stop the value being carried over to the next Detail.
HTH,
Nigel.
WhilePrintingRecords;
Shared NumberVar MyVar:=0
That will stop the value being carried over to the next Detail.
HTH,
Nigel.
--- In vantage@yahoogroups.com, "mmcwilliams22" <mmcwilliams22@...> wrote:
>
> I have a shared variable in a subreport. Now I am trying to suppress the details in the main report if the subreport is blank. The problem I am having is that using whileprinting records the variable ends up on the following detail record. How do I get it to show on the current detail record?
>