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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Totals

Status
Not open for further replies.

rjp001

Technical User
Oct 13, 2005
2
0
0
US
I need to incorporate a calculated running total field on a report. Example: Report returns datarows with a value in column A and I need to keep a running total in column B.

Datarow Column A Column B
1 2 2
2 5 7
3 0 7

Thanks for the help.
 
I think this can solve it:

Create a new variable in your DataRow class, for example ColB.

In the OnRead method add something like this

Code:
Sub OnRead( )
    Super::OnRead( )
    ColB = ColB + ColA
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top