i'm making a hotel booking/billing system for my A-Level ICT coursework.
I'm having trouble making up a query to show a list of vacant rooms. I've attached a pic of my tables and fields...
When a customer comes to the hotel, they are added to the customer table (if new) or their record is brought up. Their ID and the room they stay in is entered into the guest bill table. when a guest cheks out, a check-box is checked to show that they have checked out.
I need a query that uses this information to give a list of all vacant rooms. I've tried having the criteria for the checkbox as false, but this only brings up the rooms that have people in them already (ie entrys on the GuestBill table that are currently at the hotel), not the vacant ones....
I dont want to have to add a new field in the rooms table which will have to be changed manually.
I would greatly appreciate any help.
Thanks in advance.
I'm having trouble making up a query to show a list of vacant rooms. I've attached a pic of my tables and fields...
When a customer comes to the hotel, they are added to the customer table (if new) or their record is brought up. Their ID and the room they stay in is entered into the guest bill table. when a guest cheks out, a check-box is checked to show that they have checked out.
I need a query that uses this information to give a list of all vacant rooms. I've tried having the criteria for the checkbox as false, but this only brings up the rooms that have people in them already (ie entrys on the GuestBill table that are currently at the hotel), not the vacant ones....
I dont want to have to add a new field in the rooms table which will have to be changed manually.
I would greatly appreciate any help.
Thanks in advance.