How do I calculate the last Sunday of the month in Access?

J

Jennyrd

I need to pull all of the records whose finish dates are between today and
the last Sunday of the month.
Thanks for any help you can provide!
 
J

John Spencer

Beween Date() and
DateAdd("d",1-Weekday(DateSerial(Year(Date()),Month(Date())+1,0)),DateSerial(Year(Date()),Month(Date())+1,0))
 
J

Jennyrd

Thank you very much! It works great!
-Jenny

John Spencer said:
Beween Date() and
DateAdd("d",1-Weekday(DateSerial(Year(Date()),Month(Date())+1,0)),DateSerial(Year(Date()),Month(Date())+1,0))
 
Top