longfellow
IS-IT--Management
How do i get a grand total on the last page of my report after using the following formulas for page totals?
reset formula:
//reset
WhilePrintingRecords;
shared numbervar total := 0
accum formula:
//accum
WhilePrintingRecords;
shared numbervar total := total + {table.numberfield};
display formula:
//display
WhilePrintingRecords;
Shared numbervar total;
Total
Placements
Place the formula field reset in the page header. Right-click on it, pick “format” and then pick the common tab. Pick “suppress”.
Place the formula field accum in the details section. Right-click on it, pick “format” and then pick the common tab. Pick “suppress”.
Place the formula field display in the page footer. Position and format it as required.
I have used the above formulas to get page totals. Now how do i get a grand total on the last page if my report has 8 pages.
reset formula:
//reset
WhilePrintingRecords;
shared numbervar total := 0
accum formula:
//accum
WhilePrintingRecords;
shared numbervar total := total + {table.numberfield};
display formula:
//display
WhilePrintingRecords;
Shared numbervar total;
Total
Placements
Place the formula field reset in the page header. Right-click on it, pick “format” and then pick the common tab. Pick “suppress”.
Place the formula field accum in the details section. Right-click on it, pick “format” and then pick the common tab. Pick “suppress”.
Place the formula field display in the page footer. Position and format it as required.
I have used the above formulas to get page totals. Now how do i get a grand total on the last page if my report has 8 pages.