+ Reply to Thread
Results 1 to 4 of 4

Combine two linked tables and a lookup table

  1. #1
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Combine two linked tables and a lookup table

    I am pretty new in Access so my apologies if my if this topic is already covered. I have two sets of data in excel in separate workbooks both with the same headings in the same order. both works books are updated and saved weekly and they both have been brought through Access via importing a linked table. The first thing I do not know how to do is I need to take those two tables and put them into a master table and then I have a 3rd table that lives in Access and this table has a column called ORG and a column called UCODE for each ORG there is unique UCODE in my two other tables they have a column with the ORG in it and I need the query two basically combine the two tables and then add the UCODE based on what the ORG is how can I achieve this result. I tried a union query and got the two tables into one but now I do not know how to get that third table in the mix. Also If I update the data in the Excel sheets will it automatically update the union query?

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Combine two linked tables and a lookup table

    In a macro,
    Run a query to empty the target table,
    Import table 1 to master,
    Import table 2 to master
    Run query to join the 3rd table to the master table. This query will join fields on the common field.

    No, it will not update the excel sheets. You'd have to export the data back to the workbook.

  3. #3
    Forum Contributor
    Join Date
    09-11-2014
    Location
    Eugene, Oregon
    MS-Off Ver
    MS EXCEL 2010
    Posts
    210

    Re: Combine two linked tables and a lookup table

    Quote Originally Posted by ranman256 View Post
    In a macro,
    Run a query to empty the target table,
    Import table 1 to master,
    Import table 2 to master
    Run query to join the 3rd table to the master table. This query will join fields on the common field.

    No, it will not update the excel sheets. You'd have to export the data back to the workbook.
    Thank you! That worked and then later I realized I could use that union query and my lookup tables and just do a select query with multiple table to get the results I needed. Thanks again!!!

  4. #4
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Combine two linked tables and a lookup table

    , you'd import all fields, then do what you need with them.

    I cannot reply to your private messages because your box is full.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to combine data from two different tables into a result table
    By Laurelb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2015, 09:23 AM
  2. [SOLVED] Combine 2 tables of data into 3rd table
    By rdingley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2014, 03:08 PM
  3. [SOLVED] Combine multiple tables into one master table
    By nemoo in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 02-24-2014, 12:33 PM
  4. Combine different tables in one table from selected files
    By forfiett in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 02-21-2013, 06:07 PM
  5. How can I combine multiple tables into one pivot table?
    By crsport3 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-21-2013, 02:53 PM
  6. How do you Combine specific columns from 3 tables into new column of new table
    By R.Taylor.B in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-30-2012, 02:21 PM
  7. Lookup Tables with linked sheets
    By Jo Davis in forum Excel General
    Replies: 3
    Last Post: 05-19-2005, 09:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1