Results 1 to 4 of 4
  1. #1
    igendreau is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2011
    Posts
    6

    Combining Redundant Fields

    I have 2 tables, and for some long-winded reasons, they have some redundant information. Each table has 20+ fields, but there are a couple of fields that exist in both tables (ID, FirstName, LastName).

    Example:
    TblA
    ID FirstName LastName
    1 Joe Jones


    2 Bill Burns

    TblB
    ID FirstName LastName
    98 Jim Johnson
    99 Lou Larson

    I need to present these in one big list, showing these three fields for every record regardless of the table it came from. So my final result would be a query displaying:

    ID FirstName LastName
    1 Joe Jones
    2 Bill Burns
    98 Jim Johnson
    99 Lou Larson

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sounds like you want a UNION query:

    SELECT ID, FirstName, LastName
    FROM Table1
    UNION ALL
    SELECT ID, FirstName, LastName
    FROM Table2
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    igendreau is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jul 2011
    Posts
    6
    Perfect. That'll work. Thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help, and welcome to the site!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Combining Table Fields
    By jsimard in forum Access
    Replies: 2
    Last Post: 02-22-2011, 04:05 PM
  2. Combining fields - iif??
    By annaisakiwi in forum Queries
    Replies: 10
    Last Post: 12-22-2010, 07:49 PM
  3. Combining fields on a report
    By Alaska1 in forum Access
    Replies: 1
    Last Post: 12-15-2010, 12:14 PM
  4. Combining fields
    By cotri in forum Forms
    Replies: 2
    Last Post: 01-18-2010, 12:06 PM
  5. Replies: 1
    Last Post: 06-03-2006, 05:02 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