I'm designing a hotel reservation system for school and would like to add a
function to the database to remove hotel rooms from circulation based on a
yes/no check box in the table.
I currently have 3 entities the first being Guest which as the name states
is used to get track of all relevant guest information.
The second entity is Room which contains the following: Room Number, Rack
Rate, Date Refurbished, Date Cleaned, and a check box for Out of Service.
My third entity is a intersection between Guest and Room titled Stay. This
entity tracks the dates of the stay, any incidentals or discounts applied,
and of course which room the guest stayed in. In order to select the room I
have a drop down menu in the Stay with a 1:m relation between room and stay.
What I would like to happen is when the Out of Service check box is checked
it removes the room from the drop down box. I don't know if it's possible but
if it is any help would be appreciated.
Dale Fye - 30 Jan 2008 17:35 GMT
Karen,
Your Room combo box should be based on a query that checks for room
availability (not already booked during the period and NOT Out-of-Service).
What does that query look like now?
Dale

Signature
Don''t forget to rate the post if it was helpful!
email address is invalid
Please reply to newsgroup only.
> I'm designing a hotel reservation system for school and would like to add a
> function to the database to remove hotel rooms from circulation based on a
[quoted text clipped - 13 lines]
> it removes the room from the drop down box. I don't know if it's possible but
> if it is any help would be appreciated.