1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Combine several tables into one in access

Discussion in 'Business Applications' started by bigbird9, Nov 4, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. bigbird9

    bigbird9 Thread Starter

    Joined:
    Oct 23, 2007
    Messages:
    35
    How can I use ms access to combine several tables into one table?

    Thanks
     
  2. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    bigbird, assuming that you have created your new Single table, then you create Append Queries to add the data in the other table to the new table.
     
  3. slurpee55

    slurpee55

    Joined:
    Oct 20, 2004
    Messages:
    7,837
    But the fields must have the same names (I think - at least I make sure to give them that, just so I don't get confused) and parameters in order to successfully be appended, and, if you have a primary key the data must not be duplicated across the tables.
     
  4. bigbird9

    bigbird9 Thread Starter

    Joined:
    Oct 23, 2007
    Messages:
    35
    What about a Union query?
     
  5. slurpee55

    slurpee55

    Joined:
    Oct 20, 2004
    Messages:
    7,837
    Well, your question was how to combine several tables into one table - for that you need to append data. A query - whether a standard one or a union - resides as information on how to display the data, but doesn't actually combine it. You could set up a query to display your data like it was one table, but it would still reside in several distinct tables.
     
  6. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    What does the data look like?
     
  7. slurpee55

    slurpee55

    Joined:
    Oct 20, 2004
    Messages:
    7,837
    123abc? :)
     
  8. JackAndCoke

    JackAndCoke

    Joined:
    Apr 26, 2007
    Messages:
    152
    Are you trying to add new fields to a table from another table or are you trying to add records of the same fields from one table to another?
     
  9. bigbird9

    bigbird9 Thread Starter

    Joined:
    Oct 23, 2007
    Messages:
    35
    13 of the 14 tables that need to be combined into one have then same fields. The 1 other I ws going to deal with later. Ideally I would like all 14.

    The data has text in the first 6 columns then numbers in the following 72 columns.
     
  10. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    Can you send me a copy of the Database?
     
  11. slurpee55

    slurpee55

    Joined:
    Oct 20, 2004
    Messages:
    7,837
    If the 13 all have the same columns, I would make a copy of one and save it with a new name (e.g. all data), then run an append query 12 times (that is, based on the other 12 matching tables) with the new table as the one to merge into.
    As for the other table, depending on how different it is laid out, I would alter the one that needs the least changing (without loss of data) - whether that entails inserting new blank columns in the all data table or putting them in the 14th table, either way, do that and then make sure the columns have matching names. Finally, do one more append query to the all data table.
     
  12. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Combine several tables
  1. ranger1
    Replies:
    1
    Views:
    422
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/647794

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice