Results 1 to 2 of 2

Thread: Creating a Hotel Booking System for College

  1. #1
    Join Date
    Apr 2003
    Posts
    12

    Creating a Hotel Booking System for College

    For my college project I am attempting to create a reservation system (in Access) which could be used in a hotel for booking rooms.

    I have so far created the following tables:

    Bookings:
    BookingID
    CustomerID
    ArrivalDate
    DepartureDate
    RoomReserved
    etc

    Customers:
    CustomerID
    Surname
    Address
    etc

    Rooms:
    RoomID
    RoomName

    I have had no trouble creating the form/subform for entering the customer and booking information.

    However, I am really struggling to find a way of stopping rooms from being double booked, or for being able to find vacant rooms on a specific day.

    Does anyone know how I could go about doing this?

    Thanks very much.

  2. #2
    Join Date
    Jan 2003
    Location
    UK
    Posts
    277
    couple of things spring to mind. If you include the RoomID in the Bookings table and make it part of the primary key then.....

    Each time someone wants to book a room you just have to check in the bookings table for a certain roomID and the corresponding dates to see if there is a clash i.e. it is/not available.

    Have a look at the DatePart function in thehelp file for isolating a specific day from a date.

    So, 1 to many > Rooms to Bookings

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •