I have the following variables declaration in a subreport
whileprintingrecords;
Shared numberVar myTotal := Sum ({@Free Stock})
In the main report i have
whileprintingrecords;
shared numbervar mytotal;
mytotal
The problem happens when the subreport has no records it as mytotal on the main report has the previous products total in it. Any ideas what I am doing wrong?
whileprintingrecords;
Shared numberVar myTotal := Sum ({@Free Stock})
In the main report i have
whileprintingrecords;
shared numbervar mytotal;
mytotal
The problem happens when the subreport has no records it as mytotal on the main report has the previous products total in it. Any ideas what I am doing wrong?