B
Ben Allen
Hi,
My database allows the user to book a lesson and assign a passenger and
instructor to that lesson. The bookings table has the following structure
Booking (booking id, activity_id, time, length, instructor id, passenger id)
On my form, I would like to do some validation when entering a
time/length/changing instuctor or passenger to check that that
passenger/instructor is not already booked. Can anyone suggest a way of
doing this? I thought of using a query with a calculation such as
overlap:
IIf((tbl_booking!time)<(Forms!frm_passenger!subfrm_booking.Form!txt_booking_time)<(tbl_booking!time+tbl_booking!length),1,0)
And checking to see if any '1's are displayed, not sure if that would really
work though, thanks.
Ben
My database allows the user to book a lesson and assign a passenger and
instructor to that lesson. The bookings table has the following structure
Booking (booking id, activity_id, time, length, instructor id, passenger id)
On my form, I would like to do some validation when entering a
time/length/changing instuctor or passenger to check that that
passenger/instructor is not already booked. Can anyone suggest a way of
doing this? I thought of using a query with a calculation such as
overlap:
IIf((tbl_booking!time)<(Forms!frm_passenger!subfrm_booking.Form!txt_booking_time)<(tbl_booking!time+tbl_booking!length),1,0)
And checking to see if any '1's are displayed, not sure if that would really
work though, thanks.
Ben