I thought this would be easier, but I just can't work it out.
I have a table with records that have a Start Date and End Date fields. I need to pull all records that happen at some point during a specific month.
Example: Need all records that span some part of March 2022
Results sample:
Record 1 Start 2/25/22 and end 3/1/22
Record 2 Start 3/28/22 and end 4/15/22
Record 3 Start 2/25/22 and end 4/10/22
Record 4 Start 3/5/22 and end 3/11/22
I could write a VBA function to loop through the date range and if month value for any of the dates is March (3) and year value is 2022 then say true and include it but I have found functions like this are very slow to produce query results.
Any thoughts? I really think I am making it harder than it needs to be, but I am just not seeing it.