A
Ali
In a query I would like to be able to return all records that appear within
a date range.
The date range will be worked out from todays date and will always be the
proceeding 12 mths but not including the current month.
Eg Today's Date = 2nd Feb 05
The query would return records in the date range 1st Feb 04 to 31st Jan 05
Or Today's Date = 5th Jan 05
The query would return records in the date range 1st Jan 04 to 31st Dec 04
How can I do this? I assume a combination of DateAdd and DateSerial but
can't work out how it will work over the year end period.
a date range.
The date range will be worked out from todays date and will always be the
proceeding 12 mths but not including the current month.
Eg Today's Date = 2nd Feb 05
The query would return records in the date range 1st Feb 04 to 31st Jan 05
Or Today's Date = 5th Jan 05
The query would return records in the date range 1st Jan 04 to 31st Dec 04
How can I do this? I assume a combination of DateAdd and DateSerial but
can't work out how it will work over the year end period.