Results 1 to 8 of 8
  1. #1
    Collins is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    107

    Is it possible to combine 2 tables into one?


    A coworker of mine is trying to combine the table from one database with the table of another database. Is that possible? The information I've been able to find is by using a query and that's not what they want. They want all the fields in the one table added to the fields in the other table. The unique ID matches each record in both tables if that's useful.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Can they set a link to other table? Build a query that joins the datasets.

    If they want to actually copy the data (why?) that is different.
    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.

  3. #3
    Collins is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    107
    Quote Originally Posted by June7 View Post
    Can they set a link to other table? Build a query that joins the datasets.

    If they want to actually copy the data (why?) that is different.
    OMG June 7 are you the only person on this forum? You're the only one that ever answers my questions. You have got to be getting sick of me. They actually want the data (the records) on one table merged with the records of the other table. Basically he has a table in one database with 1 2 3 fields and a table in another database with A B C fields. He wants a table with 1 2 3 A B C fields in it. The unique ID for the records in both table match each other.

    Is that making any sense???

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Easiest approach probably is to set a link then do whatever is necessary with the data.

    How much data? Is this a one-time event? Are they both Access db?
    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.

  5. #5
    Collins is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    107
    Quote Originally Posted by June7 View Post
    Easiest approach probably is to set a link then do whatever is necessary with the data.

    How much data? Is this a one-time event? Are they both Access db?
    They're not huge. One is 10,412kb and the other is 8,448kb. Both are Access. It would be a one time deal. We're talking 318 records.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Can you link to the other table? Create the fields in the destination table. Then run an UPDATE sql action. Then remove the table link. No code necessary.
    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.

  7. #7
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Another approach you could take is a make-table query. Join the two original tables on the unique ID (it doesn't matter if they are linked or not), include the fields you want, (ID only once), then specify a destination table name. When you run the query you will get the new table with all the fields.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    John_G, they still need to set a link to table in other database.
    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. Combine Tables
    By stbeaver in forum Queries
    Replies: 5
    Last Post: 02-26-2014, 11:15 AM
  2. How do I combine 3 tables into one?
    By Steven Seagal in forum Access
    Replies: 3
    Last Post: 09-18-2012, 06:54 AM
  3. combine two tables into one.
    By chad740 in forum Access
    Replies: 2
    Last Post: 08-31-2012, 01:12 PM
  4. combine two tables
    By boomkrekel in forum Access
    Replies: 5
    Last Post: 02-18-2012, 11:26 AM
  5. combine three tables in a query
    By neuenglander in forum Queries
    Replies: 0
    Last Post: 08-21-2008, 04:02 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