Tough date query.

chef_tim

Registered User.
Local time
Today, 10:51
Joined
Dec 16, 2004
Messages
77
G'day. This is a tough one and I could use some help.

I work for the military and day to day there are people on orders. My finance folks are providing me with an Excel spreadsheet with all the names and start/finish dates of people on orders and I import that into a table.

What I need to do is query out the orders that fall on drill weekends.

An example would be; Joe is on orders from 1-Feb-07 to 15-Feb-07, drill is on the 5-6 of Feb. The queiry would need to "pick" him out as being on orders over that drill date period. Dave is on orders from 10-Feb-07 to 10-Mar-07, for the drill period of 5-6 Feb he would be left out of the results. I would also need to change the drill dates month to month to reflect each drill weekend. Any help is welcome and appriciated, Tim
 
Could you use the BETWEEN...AND function? For example [DrillDate] BETWEEN [OrderStartDate] AND [OrderEndDate] in the criteria?
 
I will give it a try and get back. Thanks, Tim
 
So really not that tough:rolleyes: , I think sometimes I think to much into these things. Thanks for teaching me that criteria, It seems to work like just like what I was looking for. Tim
 

Users who are viewing this thread

Back
Top Bottom