I'm not sure if this is going to make sense but I'm going to ask anyway...
I have a table with the following fields: Date, Time1, Time2, ClassCodeA, ClassCodeB, ClassCodeC, ClassCodeD, ClassCodeE, ClassCodeF
The classes (each ClassCode field) can be scheduled at either 09:45am (Time1 field) or 11:15am (Time2 field), every Tuesday through Friday (the Dates are already entered in the table for every Tuesday through Friday for a year. In the Date field). If a class has been scheduled the Teacher's ID number is entered in the appropriate ClassCode field.
What I'm trying to accomplish is... Usually when a teacher calls they like to schedule two different classes on the same day. For example: a teacher calls and asks "What is the first available date that I can schedule ClassCodeB and ClassCodeF?" It doesn't matter which class is scheduled first or second as long as they can take both classes on the same day. In a query I have it look for the two ClassCodes the teacher wants (If ClassCodeB and ClassCodeF IS NULL) but I don't know how to make it find the first available Date where one class is at 09:45am and the other at 11:15am.
At this point I will make any changes to the table or whatever that will help make this work.
Thanks for any suggestions or help in advance.
I have a table with the following fields: Date, Time1, Time2, ClassCodeA, ClassCodeB, ClassCodeC, ClassCodeD, ClassCodeE, ClassCodeF
The classes (each ClassCode field) can be scheduled at either 09:45am (Time1 field) or 11:15am (Time2 field), every Tuesday through Friday (the Dates are already entered in the table for every Tuesday through Friday for a year. In the Date field). If a class has been scheduled the Teacher's ID number is entered in the appropriate ClassCode field.
What I'm trying to accomplish is... Usually when a teacher calls they like to schedule two different classes on the same day. For example: a teacher calls and asks "What is the first available date that I can schedule ClassCodeB and ClassCodeF?" It doesn't matter which class is scheduled first or second as long as they can take both classes on the same day. In a query I have it look for the two ClassCodes the teacher wants (If ClassCodeB and ClassCodeF IS NULL) but I don't know how to make it find the first available Date where one class is at 09:45am and the other at 11:15am.
At this point I will make any changes to the table or whatever that will help make this work.
Thanks for any suggestions or help in advance.