D
doughnut
Hi,
I would like to create in a query a field that calculates the running sum of
orders on each term.
I.e., each order with OrderDate, between BeginTernDate and EndTermDate,
should be added. the the running sum of the same term.
However, once we have orders from new term - the running sum must restart
from the first order of the second term.
The query is based on another query (instead of tables), that gathers all
relevant fields.
it should look like:
Term BeginDate OrderDate OrderAmount Running
36 Jan 2006 Jan 2006 100
100
36 Jan 2006 Feb 2006 150
250
37 Jan 2007 Jan 2007 200
200
37 Jan 2007 Feb 2007 150
350
Thank you for your help
I would like to create in a query a field that calculates the running sum of
orders on each term.
I.e., each order with OrderDate, between BeginTernDate and EndTermDate,
should be added. the the running sum of the same term.
However, once we have orders from new term - the running sum must restart
from the first order of the second term.
The query is based on another query (instead of tables), that gathers all
relevant fields.
it should look like:
Term BeginDate OrderDate OrderAmount Running
36 Jan 2006 Jan 2006 100
100
36 Jan 2006 Feb 2006 150
250
37 Jan 2007 Jan 2007 200
200
37 Jan 2007 Feb 2007 150
350
Thank you for your help