Help With Date Criteria!!!!!
Hi People,
I have a simple date problem, and was hoping for some help please. Basically I have a table with a flight schedule . The flight schedule lists flights operating for a season normally 6 months. The schedule has a StartFlightDate field and an EndFlightDate field. The FlightSchedule table also has 7 fields for operating days of the week – Mon ; Tue; Wed; Thu; Fri; Sat; Sun, these are check boxes and indicate the days of the week in which the flight operates ( as some flights only operate on certain days of the week). The table look’s something like:
FLIGHT NO STARTDATE ENDDATE Mon Tue Wed Thu Fri Sat Sun
KT869 28/10/2003 31/03/2004 ü ü ü
KT868 28/10/2003 31/03/2004 ü ü ü
KT867 28/10/2003 31/03/2004 ü ü ü
I need to create a query that will list all flights for today’s ( or any given date) that fall between the start and end date and match the day so for example if I type 8/03/2004 (which happens to be a Monday) KT869 and KT868 would be displayed , as the date is within the Start and End date range ,and it is a Monday. What criteria would I need for the query to get this result?
Would be grate for any advice.
Many Thanks
Kango
Hi People,
I have a simple date problem, and was hoping for some help please. Basically I have a table with a flight schedule . The flight schedule lists flights operating for a season normally 6 months. The schedule has a StartFlightDate field and an EndFlightDate field. The FlightSchedule table also has 7 fields for operating days of the week – Mon ; Tue; Wed; Thu; Fri; Sat; Sun, these are check boxes and indicate the days of the week in which the flight operates ( as some flights only operate on certain days of the week). The table look’s something like:
FLIGHT NO STARTDATE ENDDATE Mon Tue Wed Thu Fri Sat Sun
KT869 28/10/2003 31/03/2004 ü ü ü
KT868 28/10/2003 31/03/2004 ü ü ü
KT867 28/10/2003 31/03/2004 ü ü ü
I need to create a query that will list all flights for today’s ( or any given date) that fall between the start and end date and match the day so for example if I type 8/03/2004 (which happens to be a Monday) KT869 and KT868 would be displayed , as the date is within the Start and End date range ,and it is a Monday. What criteria would I need for the query to get this result?
Would be grate for any advice.
Many Thanks
Kango
