K
kellya via AccessMonster.com
I have a reservation database that I am currently designing. I have a
reservation form with the arrival and checkout dates and the room id. I want
to make it so that when the user enters the dates the room-id (combo box)
field is populated with only available rooms based on this query
SELECT *
FROM tblRooms
WHERE Room_Num NOT in (select Room_Num from tblReservations where
RequestedStartDate <= EndBookingDate and RequestedEndDate >= StartBookingDate)
;
Question #1
Is this possible or do I have to use a subform?( I tried already and nothing
is happening)
Question #2
How do I get the combo box to show both the room type and the room id?
reservation form with the arrival and checkout dates and the room id. I want
to make it so that when the user enters the dates the room-id (combo box)
field is populated with only available rooms based on this query
SELECT *
FROM tblRooms
WHERE Room_Num NOT in (select Room_Num from tblReservations where
RequestedStartDate <= EndBookingDate and RequestedEndDate >= StartBookingDate)
;
Question #1
Is this possible or do I have to use a subform?( I tried already and nothing
is happening)
Question #2
How do I get the combo box to show both the room type and the room id?