I am trying to write a query/report where I can come up with a rolling
sum of the past five days for each line item that I have.
For example:
Transaction Date Amount
15-Jan-06 ($5.50)
17-Jan-06 ($2.00)
18-Jan-06 ($3.75)
23-Jan-06 ($2.00)
26-Jan-06 ($2.00)
27-Jan-06 ($1.75)
29-Jan-06 ($3.50)
30-Jan-06 ($5.25)
31-Jan-06 ($1.75)
01-Feb-06 ($2.00)
03-Feb-06 ($1.75)
05-Feb-06 ($1.75)
09-Feb-06 ($3.75)
10-Feb-06 ($5.50)
11-Feb-06 ($10.50)
12-Feb-06 ($1.75)
15-Feb-06 ($1.75)
20-Feb-06 ($1.75)
22-Feb-06 ($2.00)
24-Feb-06 ($1.75)
So that I would have a column where, for example, for 30-Jan-06, I
would have the sum of the values from 26-Jan to 30-Jan.
Any help would be greatly appreciated!