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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
Beween Date() and
DateAdd("d",1-Weekday(DateSerial(Year(Date()),Month(Date())+1,0)),DateSerial(Year(Date()),Month(Date())+1,0))
 
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))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top