Results 1 to 2 of 2
  1. #1
    bsimonian is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Location
    Kelowna, BC
    Posts
    1

    Question Combining 2 Tables

    Hello all you MS-Access geniuses! I'm fairly new to Access and I'm trying to manage a large amount of data from various sources that I need to bring into one collated table. Here's how it's setup as an example:
    • Master_Table: date, data1, data2, data3
    • Data1_Table: date1, data1
    • Data2_Table: date2, data2
    • Data3_Table: date3, data3


    The "date" variable has all the dates for this calendar year. "date1", "date2", "date3" all have dates in the same range as "date" but there are some days/data points missing. So what I'm trying to do is combined all the info in Data1_Table, Data2_Table, and Data3_Table into Master_Table. There will be missing data for various dates in the master table for each of data1/2/3 so I just want them to appear as blanks.



    I hope this makes sense and you guys can help me out with a query to get this rolling.

    Thanks in advance!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I am not sure the Master table is normalized. Are the 3 Data fields for the same kind of data?

    Need a dataset of all possible dates. A UNION can do that.

    SELECT Date1 AS RecordDate FROM Data1_Table
    UNION SELECT Date2 FROM Data2_Table
    UNION SELECT Date3 FROM Data3_Table;

    Now build another query that joins the 3 tables to the UNION query.
    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. combining 3 tables
    By instanceoftime in forum Import/Export Data
    Replies: 3
    Last Post: 11-13-2013, 01:46 PM
  2. combining 3 tables
    By revned12 in forum Access
    Replies: 1
    Last Post: 07-06-2012, 06:41 AM
  3. Combining two tables to one
    By Jerseynjphillypa in forum Queries
    Replies: 3
    Last Post: 06-22-2012, 12:06 PM
  4. combining 2 tables
    By psrs0810 in forum Access
    Replies: 11
    Last Post: 01-07-2010, 08:55 AM
  5. Combining Tables
    By king_bowzow in forum Queries
    Replies: 0
    Last Post: 08-05-2009, 10:15 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