Solved Kind of like Excel ...

Martyh

Registered User.
Local time
Today, 17:17
Joined
May 2, 2000
Messages
196
Is there a way to add the previous row's cell "B" value to the current "B" cell and then

add the current row "A" value? Kind of like in Excel?

Thanks,
Marty

An Example:
AB (Starting Point = 0)
3535 = 0 + 35
1550 = 35 + 15
454 = 50 + 4
 
As previously stated to do this in a query you would need another unique sequential field like an autonumber.
Code:
SELECT table1.id,
       table1.fielda,
       (SELECT Sum([fielda])
        FROM   table1 AS B
        WHERE  B.id <= table1.id) AS RunningSum
FROM   table1;
 
MajP Thank-you --- this works amazingly well!

Marty
 

Users who are viewing this thread

Back
Top Bottom