Computing.Net > Forums > Database > Access 2003 Double Bookings

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Access 2003 Double Bookings

Reply to Message Icon

Name: Jarry1
Date: October 14, 2008 at 09:22:52 Pacific
OS: N/A
CPU/Ram: N/A
Product: N/A
Comment:

Hi, I'm making a system for a Hotel, where I want it to be impossible to double book a room. A 'Room Table' contains the rooms, which are numbered. This is linked to a field in the 'Booking Table' which contains a RoomBooked field, and StartDate and EndDate field. I want it to validate the start and end dates so that any date between them (i.e. of someone's stay) is not inside the dates of any previous bookings, if there room numbers are the same (i.e. both bookings are for the same stay). What should I do?

Any help appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: wizard-fred
Date: October 18, 2008 at 15:48:52 Pacific
Reply:

This would waste some space. Use a room file with a day field for every day during the period you want to protect. Flag the field for the reserved days during the period when a reservation is made. When checking availability you have to check every day from proposed start date to proposed end date. Probably by looping. You would probably need a window of date ranges of at least two years.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Access 2003 Double Bookings

MS Access 2003 & Time Query www.computing.net/answers/dbase/ms-access-2003-amp-time-query/90.html

Dynamic functions in Access 2003 www.computing.net/answers/dbase/dynamic-functions-in-access-2003/326.html

Paradox 9 BLOB Field MS Access 2003 www.computing.net/answers/dbase/paradox-9-blob-field-ms-access-2003/740.html