I have a report that is grouped by customer and then part number. So only parts sold between 2 dates are shown for a given customer.
The detail section is suppressed for both G1 & G2 and also the G2 header is suppressed. The G2 footer has a sum of parts sold between 2 dates for each part.
I have used this formular to add a running total to the G2 footer and this works great,
whileprintingrecords;
numbervar grandtotal := grandtotal + {@forDirectcosts}
direct costs being
Shared numbervar directcosts:=
({RELACK.SELBSTKOSTEN}*Sum ({RELFBR.SEGM6_MENG}, {RELFBR.MNR}))/1000
What I want to be able to is put a simalar formular in the G1 footer to give the the sub total for each customer.
I have tried the reset formular,
shared numbervar directcosts :=0;
In the G1 header and the,
whileprintingrecords;
numbervar grandtotal := grandtotal + {@forDirectcosts}
in the G1 footer but this does not work correctly, it seems to add the last G2 footer value up for each customer as a running total.
Any help would be appreciated.
Regards
Allan
The detail section is suppressed for both G1 & G2 and also the G2 header is suppressed. The G2 footer has a sum of parts sold between 2 dates for each part.
I have used this formular to add a running total to the G2 footer and this works great,
whileprintingrecords;
numbervar grandtotal := grandtotal + {@forDirectcosts}
direct costs being
Shared numbervar directcosts:=
({RELACK.SELBSTKOSTEN}*Sum ({RELFBR.SEGM6_MENG}, {RELFBR.MNR}))/1000
What I want to be able to is put a simalar formular in the G1 footer to give the the sub total for each customer.
I have tried the reset formular,
shared numbervar directcosts :=0;
In the G1 header and the,
whileprintingrecords;
numbervar grandtotal := grandtotal + {@forDirectcosts}
in the G1 footer but this does not work correctly, it seems to add the last G2 footer value up for each customer as a running total.
Any help would be appreciated.
Regards
Allan