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

How to make an update query to use running sum in a field?

Status
Not open for further replies.

Fekri

Programmer
Jan 3, 2004
284
IR
Hi,

I need to update one field of my table by running sum method like this:
3 fields of my table : [bede],[best],[mande]

for example for first 3 record:

Record 1:
[mande]=[bede]-[best
Record 2:
[Mande]=[lastrecordmande]+([bede]-[best])
Record 3:
[mande]=[lastrecordmande]+([bede]-[best])

and should continue to eof.
but I don't know how to do it!!

thanks for any advice and help

Ali
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top