Results 1 to 6 of 6
  1. #1
    Kellens is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    3

    combine multiple tables with some identical columns

    Hello,

    I am new to this forum so not sure if i should post here or with "Querries".
    The problem i'm having is that i need to combine 12 tables with multiple columns and not all columns have the same headers.
    So if a column is present it should be updated, if not it should be added.

    The end result should be one column with all records and all columns that exists in all 12 tables.

    The tables have an identifier that is the same for all columns (supplier reference).
    Table 1 has 56 columns
    Table 2 has 42 columns (of which some have the same header)
    ....

    (--doing every column manually is something i would like to avoid if possible --)

    I hope my explanation is clear, if not i'll be happy to explain further.



    Thanks in advance for your time...

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Doesn't UNION Query serve your purpose ?

    Thanks

  3. #3
    Kellens is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    3
    yes was busy with a UNION but then all tables have to be the same
    i then started to think about an enmpty table with all columns present and do an append it appears i have more than 255 columns (275 to be exact) and access can't handle that.
    Dunno yet how i can /will solve this...

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,

    seems to me you should have a look at your database design and relations between the tables. I take it the columns with the same header in different tables are your primary and foreign key fields?

  5. #5
    Kellens is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2014
    Posts
    3
    the tables are comming from Excel. I used a VBA script to split-up cells in different columns. Now the idea is to combine the data in duplicate columns.
    Each table has an unique identifier (supplier number) and all the other columns MAY be doubles

  6. #6
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Appears, there are two things involved :
    1) Data Massaging of your Excel sheets.
    2) The Access DB Design.

    1) Can you post a couple of data for a couple of tables & the result you expect out of that data ?
    2) Why do you have separate Excel sheets for Suppliers Records?
    3) What does a single record for a supplier in your Excel sheet contain ?

    Thanks

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

Similar Threads

  1. Replies: 2
    Last Post: 07-03-2014, 08:28 PM
  2. Combine Multiple Access Files into One and Append Tables
    By KLTurner in forum Import/Export Data
    Replies: 10
    Last Post: 01-02-2014, 11:38 AM
  3. Replies: 3
    Last Post: 11-22-2013, 04:22 PM
  4. Search Multiple Tables (Identical Fields)
    By tristangemus in forum Queries
    Replies: 1
    Last Post: 06-21-2013, 10:32 AM
  5. Replies: 1
    Last Post: 03-21-2013, 12:19 PM

Tags for this Thread

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