AccessAddict
Technical User
Hi
Since discovering Access about 6 months ago I'm addicted, and with the help of you guys have learnt so much about databases in general it's my most time consuming hobby (I know, I'm sad but there ya go lol).
I've successflly designed a few db's, but all have been flatfiles, which I know is not the way to go, so for my latest (and most ambitious!!) project, I want to start out correctly by establishing the relationships at table level and keep the db normalised, which is a whole new ball game for me!!
It's basically going to be a hotel booking system with tblCustomer related to tblRoomName (one to many) which in turn is related to tblRoomNumber (one to many ie room names Economy, Standard, Deluxe on the one side and room numbers E1, E2, E3, S1, S2, S3 etc on the many side). What I'm struggling to work out is how each room type/number would relate to a table containing days of the year so that the system could book a room and thereby flag that room type/number as unavailable and not be able to double book it. Presumably I would have one table containg all dates from 1/1 thru 31/12 and somehow relate it to the room number and however the room is to flagged as available or let?
If anyone has any thoughts they'd be very much appreciated before I lock myself away from the world for another 6 months or so!!
Thanks for your time
Since discovering Access about 6 months ago I'm addicted, and with the help of you guys have learnt so much about databases in general it's my most time consuming hobby (I know, I'm sad but there ya go lol).
I've successflly designed a few db's, but all have been flatfiles, which I know is not the way to go, so for my latest (and most ambitious!!) project, I want to start out correctly by establishing the relationships at table level and keep the db normalised, which is a whole new ball game for me!!
It's basically going to be a hotel booking system with tblCustomer related to tblRoomName (one to many) which in turn is related to tblRoomNumber (one to many ie room names Economy, Standard, Deluxe on the one side and room numbers E1, E2, E3, S1, S2, S3 etc on the many side). What I'm struggling to work out is how each room type/number would relate to a table containing days of the year so that the system could book a room and thereby flag that room type/number as unavailable and not be able to double book it. Presumably I would have one table containg all dates from 1/1 thru 31/12 and somehow relate it to the room number and however the room is to flagged as available or let?
If anyone has any thoughts they'd be very much appreciated before I lock myself away from the world for another 6 months or so!!
Thanks for your time