Results 1 to 6 of 6
  1. #1
    joebox8 is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2011
    Posts
    13

    combining multiple tables in to one master

    Hi,
    At the moment i have roughly 200 tables in my DB, I am working on cutting this down to only 7 tables.


    Lets say you have two tables with the same fields in each, one of the tables is empty(fields only).. How could I import the data of one into the other? The fields are in different positions in each table so at the moment when i run an INSERT query the columns don't line up...
    When i import through the external data option it just creates a new table with a "1" on the end!
    This would be very handy and Im sure im blind to the obvious answer...
    Any help would be great!

  2. #2
    clean32 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    51
    i doint know if this is the best way.

    i attach the table
    then make a query with both tables in it, attached or do what ever you need to do to make the data look correct, then append or change that query to an append query.

  3. #3
    joebox8 is offline Novice
    Windows 7 32bit Access 2003
    Join Date
    Jun 2011
    Posts
    13
    How exactly would you go about implementing this? sorry im not great with the old SQL stuff!

  4. #4
    clean32 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    51
    Quote Originally Posted by joebox8 View Post
    How exactly would you go about implementing this? sorry im not great with the old SQL stuff!
    ok try making a query, then right click it, query type append, that should get you started

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Quote Originally Posted by joebox8 View Post
    How exactly would you go about implementing this? sorry im not great with the old SQL stuff!
    Joebox8,

    Do yourself some fundamental research to understand what you have and how to set it up. Take a good read of the first few topics a this site and get an understanding of the concept of normalization and Entity relationship diagramming (and the Hernandez process). A few hours spent here will help you immensely.

    http://www.rogersaccesslibrary.com/forum/topic238.html

    Good luck.

  6. #6
    Rod is offline Expert
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Location
    Metro Manila, Philippines
    Posts
    679
    Apologies for butting-in but I think you're in danger of making a mountain out of a molehill.

    INSERT INTO target [(field1[, field2[, ...]])] [IN externaldatabase]
    SELECT [source.]field1[, field2[, ...]
    FROM tableexpression

    The syntax shows you can cross reference the columns any which way you want.

    Oh ... and to add to what Orange says: clicking on that little question mark unveils a treasury of useful, nay vital, information.

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

Similar Threads

  1. Combining multiple tables
    By Duncan in forum Access
    Replies: 1
    Last Post: 03-27-2011, 08:41 AM
  2. Replies: 22
    Last Post: 03-15-2011, 07:17 AM
  3. Replies: 9
    Last Post: 12-17-2010, 01:04 PM
  4. Replies: 1
    Last Post: 07-27-2010, 08:02 AM
  5. Replies: 1
    Last Post: 06-21-2007, 01: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