{customer.CUSTOMER NAME} {orders.ORDER ID} {orders.ORDER AMOUNT}
WhilePrintingRecords; CurrencyVar Amount; Amount := Amount + {orders.ORDER AMOUNT};
This formula prints the running total of the values in the Order Amount field.
WhilePrintingRecords; CurrencyVar Amount := 0;
Because the Group Header #1 section appears once for every group, @AmountReset will execute each time the group changes. Thus, the Amount variable is reset to 0 each time a new group begins.
WhilePrintingRecords; CurrencyVar Amount;This formula simply displays the current value of the Amount variable at any time.
Because the Group Footer #1 section appears once for every group, @AmountDisplay will execute each time a group ends. Thus, the value stored in the Amount variable will be printed each time the group changes.
Note: This formula prints the same value that @RunningTotal prints as the running total for the last record in each group. But since it is printing it in the Group Footer section, it acts as a group subtotal, not as a running total.
Seagate Software, Inc. http://www.seagatesoftware.com Please send comments to: techpubs@seagatesoftware.com |