C
cytruden
You guys are SO smart!! I have been finding answers to my questions on this
site for 2 years, and I have finally reached a point where I feel I need to
ask my own question.
I am developing a database to schedule classrooms in our building. I would
like the database to inform the user if there is a scheduling conflict. The
fields I have in my table are Classroom Day StartTime and EndTime.
What I would like to be able to do is write code into my form that looks at
the records that I have already put in, and warns me if I am trying to
schedule the same Classroom on the same Day that starts between the StartTime
and EndTime when that classroom is already scheduled. For example, if
Classroom A is scheduled on Monday starting at 9:00 AM and ending at 9:50 AM,
I want to be warned that there is a conflict if I try to schedule Classroom A
on Monday at 9:30 AM.
I have looked at other posts using the DLookup and DCount functions, but the
problem I am running into is the BETWEEN time issue. Not quite sure how to
resolve this, or if it is possible.
Thank you in advance for any help!
site for 2 years, and I have finally reached a point where I feel I need to
ask my own question.
I am developing a database to schedule classrooms in our building. I would
like the database to inform the user if there is a scheduling conflict. The
fields I have in my table are Classroom Day StartTime and EndTime.
What I would like to be able to do is write code into my form that looks at
the records that I have already put in, and warns me if I am trying to
schedule the same Classroom on the same Day that starts between the StartTime
and EndTime when that classroom is already scheduled. For example, if
Classroom A is scheduled on Monday starting at 9:00 AM and ending at 9:50 AM,
I want to be warned that there is a conflict if I try to schedule Classroom A
on Monday at 9:30 AM.
I have looked at other posts using the DLookup and DCount functions, but the
problem I am running into is the BETWEEN time issue. Not quite sure how to
resolve this, or if it is possible.
Thank you in advance for any help!