Hi,
Haven't used Access in a very long time, probably 10 years now, so have forgotten most of what little I knew, and needless to say, software always changes anyhow.
What I'm currently trying to do is create a database for hotel bookings. I have different fields in a single table for the following:
- Room Number
- Room Type
Both fields have combo boxes with other tables as their row sources. There are 6 different room types (Single, Double, Double with extra, Family, Large Family, Grand).
The first thing I want help with is to establish a link between the Room Number and Room Type fields. I want the Room Number to be changeable, while the Room Type cannot be input manually, instead displaying a certain output depending on the room number selected. I.E: Room Number is "01", which is a Family Room, so whenever "01" is selected, the Room Type value is automatically "Family Room", and will only change if the user changes the Room Number field to a different room that isn't a Family Room, in which case it will change to whichever value matches the selection of the room number.
I have some familiarity with other coding languages, and get the feeling I need some sort of if statement here, but I'm a bit unsure if I've laid out my database correctly, where to put the if statement, and even how to correctly write it in Access in relation to my fields at all.
I hope I've explained the situation well enough, and am really hoping someone can help guide me through this process. I'm under the impression this is fairly basic, but I'm quite cautious with syntax-based things and such so want to get some sure advice before I attempt anything myself. Thanks in advance.