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

Total to next row

Status
Not open for further replies.

krimya

Programmer
Feb 14, 2005
8
US
I am using CE 10 with oracle database.
The out put of the data table will be ID and End Balance and I have to input o as begin balance. The total is beginbal + end bal.
for the next row the begin balance = Total.
This will continue till end of the records.

ID Begin Balance End Balance Total
1 0 100 100
2 100 200 300
3 300 (100) 200
4 200 200 400
How to accomplish this.
 
Hi !

Maybe this can help you.

Create two different formulas:

@TotalBalance
NumberVar Total := Total + {YourTable.EndBalance};

@BeginBalance
if OnFirstRecord then
0
else
previous({@TotalBalance})


/Goran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top