Results 1 to 4 of 4
  1. #1
    kingofspades is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    May 2014
    Posts
    2

    Prevent Double Bookings

    Hello,

    I am supposed to make a database for a hotel system, I was wondering how I could prevent double bookings. I have searched plenty of forums but I haven't really got the idea.

    My Reservation Table has the following fields:
    Reservation No. (PK)
    Room No. (FK)
    Customer ID (FK)
    Payment ID(FK)
    Reservation In Date
    Reservation Out Date



    Together with preventing double bookings can someone also tell me if there is a way automatically that can mark in the Room Table, the status as "available" or "booked" automatically by looking at the date today?

    Thanks In Advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Thats kinda tough...normally ROOM#, INDATE keys would stop this, but it must include the dates between.

    So I would key the fields on my reservation table: ROOM#, DATE
    this would prevent any room getting booked on the same date BUT at the point-of-entry when the user clicks BOOK ROOM...
    the program would have to append every date between start and end date for this to work.

    book: cust#12 ,R123, 5/1/14 to 5/4/14

    the app must append to table
    cust#12 ,R123, 5/1/14
    cust#12 ,R123, 5/2/14
    cust#12 ,R123, 5/3/14
    cust#12 ,R123, 5/4/14

    thus NO dbl bookings.

  3. #3
    kingofspades is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    May 2014
    Posts
    2
    is there any way i can do this? sorry im a beginner :/

  4. #4
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Check, if below gives some guidelines :

    http://www.baldyweb.com/OverLap.htm

    Thanks

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-07-2013, 08:23 AM
  2. Bookings
    By teza2k06 in forum Sample Databases
    Replies: 1
    Last Post: 03-13-2013, 08:30 PM
  3. prevent double booking!! help!
    By Jean-Daniel in forum Access
    Replies: 5
    Last Post: 05-16-2012, 06:09 AM
  4. Sum bookings by quarter
    By kgav1 in forum Access
    Replies: 3
    Last Post: 04-14-2010, 08:15 PM
  5. Prevent Multiple bookings
    By Rory898 in forum Forms
    Replies: 2
    Last Post: 02-05-2010, 11:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums