scoutdog44
New member
- Local time
- Today, 08:55
- Joined
- Oct 24, 2022
- Messages
- 5
I am trying to figure out how to build a query that will pull data from three consecutive months in the past.
I am working with a table that contains open invoices from multiple customers. This table contains a "ShipDate" column with a date format of 01/01/2022.
I want to setup the query so all I need to do each time I need the data is to refresh the data in the table and run the query that pulls all open invoices from month 2, 3 and 4 months ago no matter what day of the month I run the query.
My current formula I am using (see below) will pull data from the correct months but it does not pull the full month. Running the report on 10/24/2022, the query will only pull invoices going back to 6/24/22 and only through 8/24/22. I want all of June and all of August data to pull. How do I correct my query? Thank you in advance!!
Between DateAdd("m",-4,Date()) And DateAdd("m",-2,Date())
I am working with a table that contains open invoices from multiple customers. This table contains a "ShipDate" column with a date format of 01/01/2022.
I want to setup the query so all I need to do each time I need the data is to refresh the data in the table and run the query that pulls all open invoices from month 2, 3 and 4 months ago no matter what day of the month I run the query.
My current formula I am using (see below) will pull data from the correct months but it does not pull the full month. Running the report on 10/24/2022, the query will only pull invoices going back to 6/24/22 and only through 8/24/22. I want all of June and all of August data to pull. How do I correct my query? Thank you in advance!!
Between DateAdd("m",-4,Date()) And DateAdd("m",-2,Date())