Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: Running Total Field Post Reply Post New Topic
Author Message
menzwei
Newbie
Newbie


Joined: 13 Jun 2011
Location: United States
Online Status: Offline
Posts: 1
Quote menzwei Replybullet Topic: Running Total Field
    Posted: 13 Jun 2011 at 7:34am
I am new to Crystal Reports. 
I have a running total (sum of weights) that is resetting every time a particular field changes.  However, that total doesnt show on the last record in the report.
 
I think that is because
1) The sum is based on the change of field and on the last record that field is not changing
 
how do I get a running total to sum the last record.
I tried to change the total reset options from "on change of field" to a formula:
If {field} does not equal the next {field} then
set sum to 0
else onlastrecord
sum = sum + weight
 
its not working.... and I need help
thanks
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Jun 2011 at 4:04am
on lastrecord or field <>next(field)
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.015 seconds.