Hi there...
I'm working on hotel database (Access 2007)
I have a table named Rooms
There are 3 fields in it
Room ID, Room type, availavility
how can I make Access shows the vacant rooms which are not related to any guest?
If I understand well, that would be with a query like this:
select *
from rooms
where availability = "vacant"
As we don't know the data types of the fields, the condition in the where clause could need to be changed.
If that's not what you meant, please provide more information in the discuss section.
Last Wiki Answer Submitted: August 8, 2012 9:05 am by TomLiotta108,155 pts.
All Answer Wiki Contributors: TomLiotta108,155 pts. ,
alex198740 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Without many details about the table info & other critteria – I am not sure how to provide help. The simplest way (without any programming) in Access 2007 will be:
Go to Create .. then Select Query Design (under Other) … Select the table (Add) & then close.
Click on the fields that you want to display. Under criteria .. . Type “Vacant” – if that is the field value if it is not occupied. Hopefully you will see the result displayed.
Try to read any basic Access programming text books.
An ‘Answer’ from “carlosdl” showed up sometime around midnight PDT. That seemed very uncharacteristic, so I looked to see what he had to say. I did some cleanup and left it with what seemed to be as good as it was going to get. It took a few tries before anything worked at all. Answer History hasn’t been working reliably since the code changes a few weeks ago. Tom
Without many details about the table info & other critteria – I am not sure how to provide help. The simplest way (without any programming) in Access 2007 will be:
Go to Create .. then Select Query Design (under Other) … Select the table (Add) & then close.
Click on the fields that you want to display. Under criteria .. . Type “Vacant” – if that is the field value if it is not occupied. Hopefully you will see the result displayed.
Try to read any basic Access programming text books.
This is strange (and suspicious). The answer history for this question, shows me as the author of a change I didn’t make…
Hi Carlos, we’re looking into your answer history question. I will let you know as soon as we figure out the issue.
An ‘Answer’ from “carlosdl” showed up sometime around midnight PDT. That seemed very uncharacteristic, so I looked to see what he had to say. I did some cleanup and left it with what seemed to be as good as it was going to get. It took a few tries before anything worked at all. Answer History hasn’t been working reliably since the code changes a few weeks ago. Tom