dexterfichuk
New member
- Local time
- Today, 08:16
- Joined
- Aug 13, 2015
- Messages
- 3
Hi there, first time posting, and I'm sorry if this is worded strange, I'm new to microsoft access and trying to build a database for work and have spent all day researching this with no luck.
As of now, I have Table for rooms called Rooms, and the data in the table is roomNumber which is in the format Letter and two Digit number, so A01 would be dorm building A and room building 1, and I then have a seperate row named roomType that is either VIP or Semi Private.
Now I am creating a form where a worker will put in there scheduledCheckin date and scheduledCheckout date and it will be written to the Bookings table. I would like this form however to take the dates they have put in, as well as room type (Semi-Private or VIP, and assign them an available room that isn't booked at all in that range) or list all available rooms for that range of time and they could then just select the room. I would rather it automatically assigns an available room based on room type though because this check in system is going to have about 500 rooms.
I've attatched a link for what I have so far, and i've been struggling to get this figured out. I know how to make a query to list anyone who has booked rooms over that date, but need one for just preventing booking the same room.
drive.google. com/file/d/0B0uM5E5iAtd6Q2djS0gxdlhJeDQ/view?
As of now, I have Table for rooms called Rooms, and the data in the table is roomNumber which is in the format Letter and two Digit number, so A01 would be dorm building A and room building 1, and I then have a seperate row named roomType that is either VIP or Semi Private.
Now I am creating a form where a worker will put in there scheduledCheckin date and scheduledCheckout date and it will be written to the Bookings table. I would like this form however to take the dates they have put in, as well as room type (Semi-Private or VIP, and assign them an available room that isn't booked at all in that range) or list all available rooms for that range of time and they could then just select the room. I would rather it automatically assigns an available room based on room type though because this check in system is going to have about 500 rooms.
I've attatched a link for what I have so far, and i've been struggling to get this figured out. I know how to make a query to list anyone who has booked rooms over that date, but need one for just preventing booking the same room.
drive.google. com/file/d/0B0uM5E5iAtd6Q2djS0gxdlhJeDQ/view?