As a new Access user, I was hoping if someone could help me write a query to calculate a running 12 month write-off total based on the table details below. If someone could assist me I would be greatly appreciated.
Current Table:
[Date] [Write-off Amount]
1 Jan 01 $10.00
1 Feb 01 $20.00
1 Mar 01 $30.00
1 Jan 02 $40.00
1 Feb 02 $50.00
1 Mar 02 $60.00
1 Jan 02 $70.00
1 Feb 02 $80.00
1 Mar 02 $90.00
Desired Result
12 Month Rolling Write-off example:
$40.00(1 Jan 02) + $10.00(1 Jan 01)=$50.00
[Date] [Write-off Amount] [12 month rolling write-off]
1 Jan 01 $10.00 0
1 Feb 01 $20.00 0
1 Mar 01 $30.00 0
1 Jan 02 $40.00 $50.00(40 + 10)
1 Feb 02 $50.00 $70.00(50 + 20)
1 Mar 02 $60.00 $90.00 (60 + 30)
1 Jan 03 $70.00 $110.00(70 + 40)
1 Feb 03 $80.00 $130.00(80 + 50)
1 Mar 03 $90.00 $150.00 (90 + 60)
Current Table:
[Date] [Write-off Amount]
1 Jan 01 $10.00
1 Feb 01 $20.00
1 Mar 01 $30.00
1 Jan 02 $40.00
1 Feb 02 $50.00
1 Mar 02 $60.00
1 Jan 02 $70.00
1 Feb 02 $80.00
1 Mar 02 $90.00
Desired Result
12 Month Rolling Write-off example:
$40.00(1 Jan 02) + $10.00(1 Jan 01)=$50.00
[Date] [Write-off Amount] [12 month rolling write-off]
1 Jan 01 $10.00 0
1 Feb 01 $20.00 0
1 Mar 01 $30.00 0
1 Jan 02 $40.00 $50.00(40 + 10)
1 Feb 02 $50.00 $70.00(50 + 20)
1 Mar 02 $60.00 $90.00 (60 + 30)
1 Jan 03 $70.00 $110.00(70 + 40)
1 Feb 03 $80.00 $130.00(80 + 50)
1 Mar 03 $90.00 $150.00 (90 + 60)