|
-
May 2nd, 2006, 10:39 AM
#1
Thread Starter
Member
[Resolved] Showing sum in Crystal Reports group header
I have one formula which basically sums up another formula. This gives me the correct numbers. Then I have another formula which I attempt to display the sum and reset the counter. However I would like the sum to show in one of my group headers, but of course if I put the formula into the header, the total only correctly shows in the next group header, so all of the records are off by one. Is there a way in Crystal to make those appear in the header? The formulas are as follows:
This one computes the sum and is located in the group footer:
numbervar SumSales;
SumSales := SumSales + {@MonthlySales};
This one to display which works incorrectly when placed in group header:
whileprintingrecords;
global numbervar SumSales;
numbervar DispSales;
DispSales := SumSales;
SumSales := 0;
DispSales;
Last edited by BIGGY; May 4th, 2006 at 10:57 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|