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

    Merging data

    I have two tables in one Access Database.

    They both contain information about people with unique ID's.
    Is it possible to create 1 table with all the information for every unique person?

    Two difficulties:

    1) In table one a unique person appears multiple times
    2) There are more people in table 2 than in table 1. I only need the people that appear in both.



    Example:

    Table 1

    Person Day Act1 Act2
    A1 Monday 5 10
    A1 Tuesday 5 15
    A2 Monday 0 10
    A2 Tuesday 15 15
    B3 Monday 25 0
    B3 Tuesday 5 0

    Table 2

    Person Age Sex
    A1 22 M
    A2 33 M
    B1 44 M
    B3 22 V
    B4 23 M

    Result

    Persoon Day Act1 Act2 Age Sex
    A1 Monday 5 10 22 M
    A1 Tuesday 5 15 22 M
    A2 Monday 0 10 33 M
    A2 Tuesday 15 15 33 M
    B3 Monday 25 0 22 V
    B3 Tuesday 5 0 22 V


    Thx in advance

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    You can create a query:
    Code:
    SELECT Table1.Person, Table1.Day, Table1.Act1, Table1.Act2, Table2.Age, Table2.Sex
    FROM Table1 LEFT JOIN Table2 ON Table1.Person = Table2.Person;
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. How Merging 3 lists with similar client data?
    By tdaccess in forum Queries
    Replies: 3
    Last Post: 04-13-2011, 09:57 AM
  2. Merging 3 Reports
    By mintz87 in forum Reports
    Replies: 1
    Last Post: 02-07-2011, 07:06 PM
  3. merging two fields
    By brandon in forum Access
    Replies: 5
    Last Post: 06-09-2010, 08:17 AM
  4. Replies: 8
    Last Post: 11-04-2009, 04:22 AM
  5. Merging
    By bailey537 in forum Queries
    Replies: 0
    Last Post: 07-14-2009, 04:14 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