Results 1 to 2 of 2
  1. #1
    lewis.gib1 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2020
    Posts
    1

    Difficult Booking System Availibility Query

    I am wondering if anyone is able to help.... I am creating a hotel booking system with linked tables as follows:

    Guest Details - Bookings - Bookings Details - Staff - Rooms

    Each with foreign keys which link them. The bookings table links Employee, Guest and Booking Detail, Booking Detail then links to rooms. The only other data in the bookings table is the booking date. All other details for the booking.... room number, Arrival date, departure date etc are in the booking detail table. I am in the process of creating an interface and I need a query/macro which will find the availability between two dates and show which rooms are available on certain dates

    I.e there is no booking in that room on any of those dates.



    I understand that:
    The existing booking must arrive before (enter arrival date) and depart on or before (enter arrival date)
    OR
    The existing booking must arrive after (enter departure date) and depart after (enter departure date)


    I currently have a query which shows all the rooms which are unavailable for the set period. Is there any way that I can use a macro to show the opposite results?? I have tried using NOT but it doesn't work. I also need to present it on a form for the interface

    This is for an examined piece of work so
    Any help is appreciated, thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    see this thread for ideas

    also review the Similar Threads at the bottom of the page.

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

Similar Threads

  1. Room Booking System
    By Clarkeyboy in forum Access
    Replies: 4
    Last Post: 02-16-2018, 02:34 PM
  2. Theater Booking System
    By Patron12 in forum Access
    Replies: 2
    Last Post: 01-18-2018, 03:31 AM
  3. Booking system form
    By pelicanbuyer in forum Forms
    Replies: 1
    Last Post: 05-11-2013, 08:13 AM
  4. Help with making airport booking system
    By matthewjones108 in forum Access
    Replies: 3
    Last Post: 03-13-2012, 08:10 AM
  5. Make a booking availibility checker - please see pseudocode!
    By sirantonycartwright in forum Programming
    Replies: 0
    Last Post: 09-03-2007, 10:07 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