Date Restrictor

  • Thread starter Thread starter ChuckW
  • Start date Start date
C

ChuckW

Hello,

I run a weekly report for the previous week either on
Monday or Tuesday. I want to run a report that will
capture a Monday to Sunday cycle. It could also be a
Sunday to Saturday cycle as well. Does anyone know what
date restrictor to use?

Thanks,

Chuck
 
First day of the week being Monday.

DateAdd("d",2-Weekday(Date()),Date())

To get that back to Monday a week ago subtract 7 and to get to Sunday subtract 1

Between DateAdd("d",2-Weekday(Date()),Date())-7 and
DateAdd("d",2-Weekday(Date()),Date())-1

Adjust the numbers to get Sunday to Saturday (Basically change the 2 to a 1)
 
Back
Top