Running Sum In Query

G

Guest

I hv this in my query

Cust Amt AccAmt
A 100 100
B 200 300
C 500 800

Ho to achieve AccAmt in my query column

TQ
 
P

Pieter Wijnen

SELECT A.Cust, A.Amt, (SELECT A2.Amt FROM MyTable A2 Where A2.Cust > A.Cust)
As AccAmt
FROM MyTable A
ORDER BY A.Cust

HTH

Pieter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Top 20 1
SUM BY CRITERIA 6
DATA NOT REFLECTING IN REPORTS 3
Calculate Difference 1
Access Running Balance in Access 1
Query Number Of Character 3
To Add % In Query 6
Data Patch By Batch 1

Top