Hi
I am curently doing an access data base to book audiovisual equipments. I have used index to have date, equipmet and startTime as primary key that way I dont book the same equipment twice. But am lost with the ReturnTime because if the equipment is out from 8am to 11am it lets me book from 9am to 10am for example. My times are selected from combobox which are fed by tables. My tables are the following.
tblUserInfo
ID_PR(primary key)
UserName
UserID
tblLoanInfo
ID_SC(primary key)
ID_PR
LoanDate
Equipment
StartTime
EndTime
tblEquipment
Equipment
tblStartTime
StartTime
tblReturnTime
ReturnTime
I have a frmLoan with the user information and the loanInfo subform with the loan date, equipment, starttime and endtime. I am stuck trying to figure out how to prevent double booking for time gaps.
I am curently doing an access data base to book audiovisual equipments. I have used index to have date, equipmet and startTime as primary key that way I dont book the same equipment twice. But am lost with the ReturnTime because if the equipment is out from 8am to 11am it lets me book from 9am to 10am for example. My times are selected from combobox which are fed by tables. My tables are the following.
tblUserInfo
ID_PR(primary key)
UserName
UserID
tblLoanInfo
ID_SC(primary key)
ID_PR
LoanDate
Equipment
StartTime
EndTime
tblEquipment
Equipment
tblStartTime
StartTime
tblReturnTime
ReturnTime
I have a frmLoan with the user information and the loanInfo subform with the loan date, equipment, starttime and endtime. I am stuck trying to figure out how to prevent double booking for time gaps.
Comment