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!

Insert Running Total

Status
Not open for further replies.

kime1974

Programmer
Oct 30, 2006
36
0
0
US
I have a table of data that I want to run a query against to insert a running total column based on a field in the table (Member ID).

Example of the column data would be:

Member ID Benefit Plan Date

I want to have a running total on a reoccuring Member ID. Example of the Query output would be:

Member ID Benefit Plan Date RunningTotal
12345678 Medical 12/1/2000 1
12345678 Dental 12/1/2000 2
12345678 Life 1/1/2004 3
 
Have a look at thread701-1458165 where PHV shows you how to do this.
 
I have a table of data that I want to run a query against to insert a running total column based on a field in the table (Member ID).

I've always been told that it is bad practice to have a field to hold the total of something.

you are better off doing it through the query as is done in the query in the above link.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top