Results 1 to 2 of 2
  1. #1
    Telarien is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    1

    Querey to add matched data and retain unmatched data in results

    Greetings!

    Say I have a database with two tables:

    Table one: Assets (has three fields) F1 "Serial Number" F2 "Machine Name" F3 "UserName"
    Table two: Locations (has three fields F1 "UserName" F2 "BuildingNo" F3 "RoomNo"

    Table one has 500 records, but Table two only has 50 records

    Using "UserName" to match the tables, I want my Query results to look like:

    F1 "Serial Number" F2 "Machine Name" F3 "Username" F4 "BuildingNo" F5 "RoomNo"
    And contain **All 500 records from table one.



    Those that match will have fields 4 and 5 populated, and those that dont match will have fields 4 and 5 blank.

    How can I do that?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    Did you try query with JoinType of 'Show all records from Table One and only those from Table2 that are equal'?
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 12-08-2011, 01:52 PM
  2. Data Entry Form: Retain Selected List Box Value
    By William McKinley in forum Forms
    Replies: 1
    Last Post: 11-05-2010, 10:14 AM
  3. UnMatched Data Query (Edit Data)
    By pedraza4 in forum Queries
    Replies: 3
    Last Post: 06-16-2010, 07:29 AM
  4. how to show all data in this querey
    By grad2009 in forum Queries
    Replies: 3
    Last Post: 02-08-2010, 07:35 AM
  5. Unmatched data entered with data in table
    By boreda in forum Access
    Replies: 0
    Last Post: 07-28-2006, 09:11 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