Results 1 to 10 of 10
  1. #1
    Jean-Daniel is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    9

    can someone helper for a project please very important


    i'm working on a database in access, for hotel reservation, there is for booking, date in and date out for each reservation and for different room, my teacher ask me how would i make sure that when a client come and reserve the same room that another client has reserved, he did it in a different date in and date out??? please help, he ask to create a queries but it does not working, please how would i make it please??

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    What do you want the query to show:

    1. only those rooms that are available for the given date range

    or

    2. all reservations for the specific room for the given date range
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Jean-Daniel is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    9
    sorry dear excuse, i want when i'm selecting a date, in the booking form when booking a room, if the room is already book on durant that period of time, it tell me that i can't book it that all

  4. #4
    Jean-Daniel is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    9
    sorry dear excuse, i want when i'm selecting a date, in the booking form when booking a room, if the room is already book on during that period of time, it tell me that i can't book it that all,

    a. just like a check that is a room can be book by only client for a specific date in and date out

  5. #5
    Jean-Daniel is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    9
    oh sorry to disturb against, by the way if you could help me how to create this type of query that i'm asking ok :-), and also i will be thankfull if you give me the two type of query that is the answer a and b, i will try something also. thx

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    A query can't tell you that you can't book, all it can do is show records according to criteria provided. You will have to evaluate the results and decide what they mean.

    What you can do is have code that will do a search of records according to criteria and give a message that is dependent on the result of the search. That code would probably be VBA (I use only VBA, not macros).

    Don't know your data structure so can't offer specifics.

    Also, not going to do your homework. If you are confused, suggest you get guidance from instructor.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Jean-Daniel is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    9
    oh ok but can you help me to create the two query you give before please

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    As stated, don't know your data structure.

    Maybe reviewing other projects will help you. http://www.brighthub.com/computing/w...les/76613.aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    Jean-Daniel is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2012
    Posts
    9
    oh thank
    1. only those rooms that are available for the given date range

    or

    2. all reservations for the specific room for the given date range

    can u give me an idea how to create these 2 query please

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Opening tables for important database
    By SemiAuto40 in forum Programming
    Replies: 5
    Last Post: 04-19-2012, 10:30 AM
  2. Super Important Database Question!
    By mwiley2011 in forum Access
    Replies: 5
    Last Post: 02-14-2012, 11:06 AM
  3. Please Help Updating Form from Table Important
    By crcastilla in forum Access
    Replies: 5
    Last Post: 08-20-2011, 01:53 AM
  4. Display 'Important Message' On Contiuous Form
    By mseeker22 in forum Forms
    Replies: 35
    Last Post: 06-19-2011, 07:23 PM
  5. Important queiry for the inventory
    By nardionline in forum Queries
    Replies: 4
    Last Post: 12-11-2010, 05:45 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