Query for current year dates plus December of previous year??

Query for current year dates plus December of previous year??

Post by tlyczk » Wed, 07 Jun 2006 04:30:31


Hello,

I have a db app where sometimes during January, people need to look at
the previous year's data, going back through December.

How do I construct a query which says: "Give me all this year's dates
plus last December's dates." always for the current year??

I think it would involve DateSerial, but I am not sure how to get the
December part...

Thank you, Tom
 
 
 

Query for current year dates plus December of previous year??

Post by fred » Wed, 07 Jun 2006 04:35:17


Between DateSerial(Year(Date())-1,12,1) and Date()
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

 
 
 

Query for current year dates plus December of previous year??

Post by tlyczk » Wed, 07 Jun 2006 04:49:54

Thank you, I had also figured it out using the Year and Month functions
too, your solution is more simple and elegant.

Thank you, Tom