B
B
barkalov2014-10-17 23:14:28
SQL
barkalov, 2014-10-17 23:14:28

How to make a "smart" sum in Microsoft Access?

Comrades, we really need help. Essence in the picture:
cee9ef0864ff4ddba82e8be39271ac98.png
There is a Docs table. How to make SQL-query (report, whatewer) returning the whole table plus one more column of "smart" running sum?
The running amount is the sum of the previous running amount, plus the value of Cost if it is a payment; minus Cost if this is a requirement; or, if document type: opening balance, then the value of the running amount becomes simply Cost.
You know, these things are easy to do in Excel.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question