Results 1 to 8 of 8
  1. #1
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154

    Query on rooming list

    Dear all

    I would like to query a rooming list in which I have people sharing the room.



    We make[Field] as ID, Name, room

    ID 2001 Eric - 1
    ID2089 Erica - 1.1

    ID3450 bertha - 2
    ID2345 Victor - 2.1

    So, *.1 representing as a share person.

    How can I query all room pairing ?

    Thanks

  2. #2
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    What does the table look like? Is that one field? What is the data type of the field?

    If it is one text field you can use in the criteria:
    Like "*.*"

  3. #3
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    How do you want your results to look?

  4. #4
    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,870
    I suggest 3 tables

    People
    Rooms
    PeopleInRoom

    People---->PeopleInRoom<-----Room

  5. #5
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154
    Please find the structure but have no idea why can not no decimal show in the room code where i want to pair
    Attached Thumbnails Attached Thumbnails Capture.jpg   Capture_1.PNG  

  6. #6
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154
    Gina

    I want to use queries and select by the Hotel names

    then,

    ID - Name- 1.1 " "Name -1.2 etc

  7. #7
    Erictsang is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    154
    this is what what i want to be displayed

  8. #8
    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,870
    Forget queries for the moment.
    You have People, Room, RoomType,PMCode, Hotel,...
    You need to sort out what you really want to know/record, then describe this in simple English so you can identify the rules and relationships.

    You have to create a data structure that supports your business/requirement. You don't start with a query. You need to do the analysis of your issue, then design, then develop the database...

    Good luck.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-12-2017, 12:03 PM
  2. Replies: 1
    Last Post: 02-15-2016, 04:48 PM
  3. Replies: 1
    Last Post: 04-21-2014, 08:00 AM
  4. Replies: 7
    Last Post: 07-11-2013, 10:05 AM
  5. Replies: 4
    Last Post: 06-16-2011, 09:30 PM

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