Access Criteria for Current Week starting Monday and ends Sunday

shrut999

New Member
Joined
Jun 19, 2016
Messages
28
[FONT=verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif]Good evening everyone,[/FONT]

[FONT=verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif]I have the formula below but it does Sunday to Saturday. Is there a way I can get a criteria which can do current week starting Monday and ends Sunday, I searched a lot but can't find an correct answer. Any help will be greatly appreciated. Thank you very very much in advance.

[/FONT]

[FONT=verdana, geneva, lucida, lucida grande, arial, helvetica, sans-serif]"BETWEEN [/FONT]DateAdd("d", -((Weekday(Date()) - 1)), Date()) AND Date()"
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
If I change the 1 to 2 it is pulling information from Monday to today but its not including Sunday.
Which means BETWEEN DateAdd("d", -((Weekday(Date()) - 2)), Date()) AND Date()

Is it because its not Sunday yet?
 
Upvote 0
the Term Date() in Access means today so that is why. You will need to adapt your expression.
 
Upvote 0
After few hours of playing around I got it Includes data from This week starting Monday to Sunday

Between DateAdd("d",2-Weekday(Date()),Date()) And DateAdd("d",((Weekday(Date())-1)),Date())
 
Upvote 0

Forum statistics

Threads
1,221,813
Messages
6,162,117
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top