Results 1 to 2 of 2
  1. #1
    Phlee is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2011
    Posts
    4

    Queries not providing result when there is missing info

    Hello,

    I have a database with 4 tables that are linked with keys. I want to make a query where I can search an ID and gives me all the information from all the tables for that ID.

    The problem is that not all ID's have records for all tables. I have found that my query only provides me a result if it has existing records for all tables. How can I make it so that it just gives me all available/existing information?

    Can I do this without going into VBA?

    Thanks.

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    I believe that you are in need of a left join on your tables. Look at this link for an explanation. You probably have a inner join right now which means it will only return data when it exists in all tables.

    http://www.techonthenet.com/access/queries/joins2.php

    Alan

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

Similar Threads

  1. Replies: 1
    Last Post: 07-13-2011, 11:30 AM
  2. Getting Info From Tables with Queries
    By SteveI in forum Queries
    Replies: 0
    Last Post: 03-01-2010, 08:33 AM
  3. Providing role based access
    By mrk68 in forum Security
    Replies: 3
    Last Post: 03-25-2009, 07:46 PM
  4. Search result links adding extra info
    By Vbcw in forum Programming
    Replies: 0
    Last Post: 12-19-2008, 12:19 PM
  5. Replies: 0
    Last Post: 11-16-2008, 09:46 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