C
cadillac
Help please!!!!!
I am building a data base for booking audiovisual equipment. My table
structure is the following.
tblUserInfo
ID_PR (Primary Key, auto number)
Name
Last Name
tblLoanInfo
LoanDate
Equipment
StartTime
EndTime
ID_SC(Primary Key, auto number)
ID_PR (number)
tblEquipment
Equipment (store equipment names)
tblStartTime
StartTime (stores available Start Times, date/time field)
tblReturnTime
ReturnTime (stores available Return Times, date/time field)
My problem is that when I have a booking lets say for today 1/26/2010, DVD-01,
8:00 am, to 10:00am, I should not be able to book that same DVD-01 at 9:00,
to 10:00.
I have done the Allen Browne clashing events query and I see my double
booking (that query worked). I have read about using the DLookup in the form
instead of the clashing query to check if the record can be booked. This is
where I am now. I can't get the DLookup to work. I have been on this for
days and need some help. Can any one help me get the right DLookup structure
so that I wont be able to book and equipment.
Thank you.
I am building a data base for booking audiovisual equipment. My table
structure is the following.
tblUserInfo
ID_PR (Primary Key, auto number)
Name
Last Name
tblLoanInfo
LoanDate
Equipment
StartTime
EndTime
ID_SC(Primary Key, auto number)
ID_PR (number)
tblEquipment
Equipment (store equipment names)
tblStartTime
StartTime (stores available Start Times, date/time field)
tblReturnTime
ReturnTime (stores available Return Times, date/time field)
My problem is that when I have a booking lets say for today 1/26/2010, DVD-01,
8:00 am, to 10:00am, I should not be able to book that same DVD-01 at 9:00,
to 10:00.
I have done the Allen Browne clashing events query and I see my double
booking (that query worked). I have read about using the DLookup in the form
instead of the clashing query to check if the record can be booked. This is
where I am now. I can't get the DLookup to work. I have been on this for
days and need some help. Can any one help me get the right DLookup structure
so that I wont be able to book and equipment.
Thank you.