Results 1 to 6 of 6
  1. #1
    Boost is offline Advanced Beginner
    Windows 8 Access 2013 64bit
    Join Date
    May 2018
    Posts
    47

    Query that displays values that have no current value.

    Hi there, I'd like to achieve the following.



    I have four tables, which I have pulled into individual queries that represent categories. They are as follows:
    - qry_Languages
    - qry_Qualifications
    - qry_Registrations
    - qry_Skills

    Each query contains a PK that is shared by the others (PK = "SAP#").

    Rather than having four separate queries for end-users to trawl through, I'd like to engineer one query that contains all the records for each PK/SAP#.

    I gave it a try, but it only reports back on PK/SAP#'s that have a record in each individual query / a complete recordset.

    The issue I face is that, a PK/SAP# may have only a language, and skill value in their record. While another PK/SAP# may have a language, registration, and qualification value under their record.

    Ideally I would like to have the query have a list of all PK/SAP#'s - with the values held showing, as well as where there is no value.

    Hope that kind of identified what I'm trying to achieve.

    Boost

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sounds like you need to edit the join between the table with aal records and each of of those queries. Double or right click to do that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    take all those queries and put into 1 single UNION query.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Two questions
    1. Do any of your tables contain the full list of PK values?
    2. Do your tables each have just one record for a PK value?

    BTW using special characters like # in field names is not a good idea
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    Boost is offline Advanced Beginner
    Windows 8 Access 2013 64bit
    Join Date
    May 2018
    Posts
    47
    Hi ridders52,

    1. Yes, one table does contain all of the PK values
    2. No, the tables have multiple records under a PK (IE. PK #1 = French, PK #1 = German)

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    Quote Originally Posted by Boost View Post
    Hi ridders52,

    1. Yes, one table does contain all of the PK values
    2. No, the tables have multiple records under a PK (IE. PK #1 = French, PK #1 = German)
    1. OK - which table or query? Knowing this means it can be done with joins rather than a union query.
    2. That makes it a bit more complex to do in one query especially if all tables have multiple records for each PK

    Need to see your table designs and some sample data to advise on the bed approach
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

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

Similar Threads

  1. Replies: 2
    Last Post: 03-20-2018, 11:52 AM
  2. Creating a subform which displays values from a table
    By marcvanderpeet12 in forum Access
    Replies: 1
    Last Post: 03-03-2014, 01:04 PM
  3. Replies: 2
    Last Post: 09-06-2011, 05:44 PM
  4. Query that displays previous row as well
    By mccarthy in forum Queries
    Replies: 5
    Last Post: 02-20-2011, 05:31 PM
  5. Replies: 1
    Last Post: 01-10-2011, 11:37 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