Results 1 to 4 of 4
  1. #1
    TheMote is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    4

    2 tables, 1 query, prevent automatic data exclusion

    Hello,



    Could someone please help me solve this issue that I am having with a simple query?

    Table #1 has a field for storing company names.

    Table #2 has fields for storing projects assigned to some of those companies.

    My goal is to identify which companies Do Not have a project assigned to to them.

    Running a query for CompanyName in table #1 will of course show all companies, but as soon as I add table #2 to the query design mode it automatically excludes all companies that do not have a project assigned to them. What I think is happening is that since Company1 has no project assigned to it, it is therefore not located in the projects table, which means I disappears once I add table #2 to the query.

    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Look at the Unmatched query in the Access Query Wizard

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The query probably has INNER JOIN, change to outer LEFT or RIGHT (I forget which will be correct) - "Include all records from Table1 and only those from Table2 that match".
    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.

  4. #4
    TheMote is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Dec 2014
    Posts
    4
    The Unmatched query did exactly what I wanted - thank you so much guys!

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

Similar Threads

  1. Weekend/Holiday Exclusion:
    By DHook in forum Modules
    Replies: 5
    Last Post: 12-10-2014, 12:52 PM
  2. Replies: 1
    Last Post: 10-30-2014, 11:09 AM
  3. Replies: 1
    Last Post: 11-16-2012, 10:25 AM
  4. Replies: 1
    Last Post: 02-23-2012, 02:27 PM
  5. Prevent Excel opening Access Tables
    By Bishop426 in forum Security
    Replies: 4
    Last Post: 09-05-2011, 09:32 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