"Rolling date criteria" for Query

JuJuBe

New Member
Joined
Aug 6, 2010
Messages
3
I need help with how to write a criteria in a query that only pulls records with a date field that is in the past 6 weeks. I want today and the past 42 days.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

alansidman

Well-known Member
Joined
Feb 26, 2007
Messages
6,235
Office Version
  1. 365
Platform
  1. Windows
Try this:
Between Now() And Now()-42

Alan
 

JuJuBe

New Member
Joined
Aug 6, 2010
Messages
3
Thanks Alan. It's not working. I am sure it is due to my ignorance of access.

I am entering this in the criteria box of the field of the query I want to filter in design view. Is that correct? When I run the query after entering this I get zero records. There are lots of records in the table of source data that should match this criteria.
 

Watch MrExcel Video

Forum statistics

Threads
1,133,274
Messages
5,657,780
Members
418,413
Latest member
Radoslaw Poprawski

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
Top