Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resetting running totals to something other than 0 1

Status
Not open for further replies.

NNIsarahd

Programmer
Aug 13, 2003
43
0
0
US
I have a report where I am showing x points assigned to a person, with multiple people listed on this report.

Using CR 7, I have a running total set up. I have it so that it resets on change of the person (Group 1).

However, I cannot seem to find what I'm looking for.

Here's what I need to do...

On change of person, I want the running total to reset to a number determined off of the database, not to 0.

Is there a way to tell the running total to reset to this other number? Or are running totals stuck at resetting to 0?
 
I think you would have to use a manual running total. Create three formulas:

//{@reset} to be placed in the group header:
whileprintingrecords;
numbervar sumamt := {table.field};
//plug in the field you want to the running total to reset to

//{@accum} to be placed in the detail section:
whileprintingrecords;
numbervar sumamt := sumamt + {table.amt};
//plug in the field you want to accumulate

//{@display} to be placed in the group footer:
whileprintingrecords;
numbervar sumamt;

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top