Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - booking rooms in a ski lodge
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

booking rooms in a ski lodge

 Post Reply Post Reply
Author
group1 View Drop Down
Newbie
Newbie


Joined: 20 August 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote group1 Quote  Post ReplyReply Direct Link To This Post Topic: booking rooms in a ski lodge
    Posted: 20 August 2003 at 7:58am

Hey guys, I am creating an online booking system for the ski lodge for which i am a member. Basically I am having problems with bed availability. Basically I don't want people making bookings when there are no beds left in the lodge.

There are 43 beds in the lodge and everytime a booking is made i want the beds to reduce from the total of 43 available for that date.

Obviously if there was a booking for 3 people for 2 nights, where the customer arrives on the 1st of August, the 1st, 2nd and 3rd of August would have to be updated where 40 beds exist, not 43.

Obviously once the beds get to zero on a particular date, a booking cannot be made.

I already have forms where a user submit data into this database:

Table: Bookings
Field: Booking No
Field: DateArrive
Field: DateDepart
Field: NoPersons
Field: NoNights

Thanks everyone

Simon

Back to Top
Phat View Drop Down
Senior Member
Senior Member


Joined: 23 February 2003
Status: Offline
Points: 386
Post Options Post Options   Thanks (0) Thanks(0)   Quote Phat Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2003 at 8:46am

Just run a query against datearrive and datedepart and nopersons. If the date that you want to book has more than 43 then you can you can not book a room.

Another way would be to have a separate table with with datestay + # people and then each time someone is staying update the table with # people and date.

You can then run a query to count the number of people for that date. Once they have left delete the record.

The only problem whit this is access will get larger with all the deleting going on. If it is access you're using

 

 

Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2003 at 5:19pm
You're going to have to do the math for each night of the stay before you update.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.