dates back 6 months

krberube

just beyond new
Local time
Today, 15:31
Joined
Jan 14, 2005
Messages
142
Good morning all,
I currently have the following expression in a query, to go back 6 months from the current date.

Between DateAdd("m",-6,Date()) And Date()

Does anyone know of a way from the current date, go back to the end of the previous month ( 30th, or 31st) then go back 6 months?

hope that made sense.
Thanks
Kevin
 
I'd just have the user enter the date range - ;)
 
ahh, thats how the report ( query) started, it has sinced morphed into a more complicated and useful report.
I found a post ( right after i posted the thread) that gave

>=DateSerial(Year(DateAdd("m",-6,Date())),Month(DateAdd("m",-6,Date())),1)

This seems to have worked
Thanks
 

Users who are viewing this thread

Back
Top Bottom