
How to take the page totals of a report in Crystal Report 5.0
What you need here is 3 formulas with a memory variable
This formula goes in the page header format it to be suppressed(not
printed)
WhilePrintingRecords;
NumberVar myTotal :=0;
This formula goes in the detail line also formatted to be suppressed
WhilePrintingRecords;
NumberVar myTotal;
myTotal := myTotal + <<Field that is to be totaled>>;
In the footer this formula formatted to be visable
WhilePrintingRecords;
NumberVar myTotal;
myTotal;
Where you will get into trouble. You will forget the Full Colin before the
equal sign and the report will compile but the values will not total.
You will not terminate each of the statements with a semi colin and
crystal will complain when you try to save the formula.
You will leave out the line "WhilePrintingRecords;" and the report will
work for a while and then when you change something totally unrelated it
will crash.