Results 1 to 3 of 3
  1. #1
    awayhere is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2

    Query missing results


    Hello,

    My issue is that I have a query that should essentially return an entire table but it is missing some entries. The entries that are missing appear to be entries that do not have a value when I do a lookup.

    SELECT Perm.PermSequence, Perm.SeqNo, (and more fields)
    FROM tblType INNER JOIN (Status INNER JOIN (Description INNER JOIN Perm ON Description.[DESCN] = Perm.[DESCN]) ON Status.[Status No] = Perm.[StatusNo]) ON Type.[TYPEN] = Perm.[TYPEN];

    I shortened the query to be more readable. Any time any entry is null for one of the three joins, it does not show the entry at all. How do I get it to still show the entry but with a blank?

    Thank you,

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    INNER join requires related records in all tables. Try using LEFT or RIGHT joins instead.
    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
    awayhere is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    2
    You were absolutely right. I needed right joins. That allowed it to show all the data in the original table and the additional data only if the join applied. Perfect!

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

Similar Threads

  1. Replies: 5
    Last Post: 05-21-2013, 02:21 PM
  2. Replies: 3
    Last Post: 05-02-2013, 10:36 AM
  3. Replies: 1
    Last Post: 07-14-2012, 01:37 AM
  4. Replies: 6
    Last Post: 05-14-2012, 07:24 AM
  5. Missing Counts that = 0 in query results
    By dandhjohn in forum Queries
    Replies: 1
    Last Post: 01-29-2010, 11:28 AM

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