Have a database table containing sales collected per location.
[month] / [year] / [date] / [location #] / [sales]
When locations are collected the date of collection is keyed in. If that location is NOT collected it gets a date of 1/1/1901. [Month] and [Year] are always correct. I have no problem getting the last collection [date] using the LAST or MAX options for grouping in the query. But I have been unable to find a way to give me the previous collection date. Is there some equation I can build that would give me that date? Like if the last collection date was 9/22/2003, I would want the previous collection date that's not a 1/1/1901 collection. So if for August there was no collection, but for july there was, it would skip the 1/1/1901 entry for aug, and give me the 7/##/2003 date for july. Any tips or pointing in a general direction would be of great help. Thanks in advance!
[month] / [year] / [date] / [location #] / [sales]
When locations are collected the date of collection is keyed in. If that location is NOT collected it gets a date of 1/1/1901. [Month] and [Year] are always correct. I have no problem getting the last collection [date] using the LAST or MAX options for grouping in the query. But I have been unable to find a way to give me the previous collection date. Is there some equation I can build that would give me that date? Like if the last collection date was 9/22/2003, I would want the previous collection date that's not a 1/1/1901 collection. So if for August there was no collection, but for july there was, it would skip the 1/1/1901 entry for aug, and give me the 7/##/2003 date for july. Any tips or pointing in a general direction would be of great help. Thanks in advance!