Hello all,
I'm looking for a way to pull the previous date in a query. The table data is structured in the same way listed below minus the red text. The red dates below are my goal. I am using Access 2003. I've done some searching and tried a few things I found, but no luck so far. What would be the best way to go about doing that? Even if all you can do is point me in the right direction, it would be greatly appreciated.
Thanks!
[month] [Year] [Route] [Loc#] [SubLoc] [Actual Date] [Previous] [Sales]
07 2007 1 481 A 7/31/2007 (null) $776.50
07 2007 1 481 B 7/31/2007 (null) $604.50
08 2007 1 481 A 8/31/2007 7/31/2007 $322.25
08 2007 1 481 B 8/31/2007 7/31/2007 $333.00
09 2007 1 481 A 9/28/2007 8/31/2007 $111.50
09 2007 1 481 B 9/28/2007 8/31/2007 $170.25
10 2007 1 481 A 10/31/2007 9/28/2007 $232.50
10 2007 1 481 B 10/31/2007 9/28/2007 $225.00
11 2007 1 481 A 11/29/2007 10/31/2007 $253.50
11 2007 1 481 B 11/29/2007 10/31/2007 $277.00
I'm looking for a way to pull the previous date in a query. The table data is structured in the same way listed below minus the red text. The red dates below are my goal. I am using Access 2003. I've done some searching and tried a few things I found, but no luck so far. What would be the best way to go about doing that? Even if all you can do is point me in the right direction, it would be greatly appreciated.
Thanks!
[month] [Year] [Route] [Loc#] [SubLoc] [Actual Date] [Previous] [Sales]
07 2007 1 481 A 7/31/2007 (null) $776.50
07 2007 1 481 B 7/31/2007 (null) $604.50
08 2007 1 481 A 8/31/2007 7/31/2007 $322.25
08 2007 1 481 B 8/31/2007 7/31/2007 $333.00
09 2007 1 481 A 9/28/2007 8/31/2007 $111.50
09 2007 1 481 B 9/28/2007 8/31/2007 $170.25
10 2007 1 481 A 10/31/2007 9/28/2007 $232.50
10 2007 1 481 B 10/31/2007 9/28/2007 $225.00
11 2007 1 481 A 11/29/2007 10/31/2007 $253.50
11 2007 1 481 B 11/29/2007 10/31/2007 $277.00