Hi everyone,
This is the first post for me. I have been looking for about a week now so I hope I have not missed someone posting this same question.
In my access database, I have a Start Date field, Stop Date field, Time_In field, and a Time_Out field.
I am creating a scheduling application. What I am trying to do, if possible, is using an ado connection, take a start date, start time, stop date and stop time from a vb form that the user would plug in the dates and times in, and compare that to those same fields in the Acces db to see if there is overlap from one scheduled event to the next.
For example, Unit A schedules in 11/1/2006 at 10:00 AM til 11/2/2006 at 11:00 AM. Another person gets a call from Unit B who wants to schedule for 11/1/2006 13:00 til 11/2/2006 14:00.
I would like the querry to run from vb6 and see the overlap so I can then display
MSGBOX "There is an overlap of times. Unit A has already schedule use for this time period.", vbokonly,"Range already schedule for use!"
I can not seem to get the querry string right. Any help would be greatly appreciated!
This is the first post for me. I have been looking for about a week now so I hope I have not missed someone posting this same question.
In my access database, I have a Start Date field, Stop Date field, Time_In field, and a Time_Out field.
I am creating a scheduling application. What I am trying to do, if possible, is using an ado connection, take a start date, start time, stop date and stop time from a vb form that the user would plug in the dates and times in, and compare that to those same fields in the Acces db to see if there is overlap from one scheduled event to the next.
For example, Unit A schedules in 11/1/2006 at 10:00 AM til 11/2/2006 at 11:00 AM. Another person gets a call from Unit B who wants to schedule for 11/1/2006 13:00 til 11/2/2006 14:00.
I would like the querry to run from vb6 and see the overlap so I can then display
MSGBOX "There is an overlap of times. Unit A has already schedule use for this time period.", vbokonly,"Range already schedule for use!"
I can not seem to get the querry string right. Any help would be greatly appreciated!
Comment