Results 1 to 4 of 4
  1. #1
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts

    Importing new columns from Excel

    I have a 75-row, ten-column Excel worksheet that I've imported as a table into Access 2010. One field in the worksheet and the table is named ID.

    Now I have another Excel worksheet that also has the ID field, but with about 20 additional columns of data that isn't in the previous worksheet or in the table I made from it.

    I'm looking for a way to add the additional Excel columns to the Access table. I don't find any simple way to do that.

    My Access skills are rusty, but I seem to remember that I could import the new worksheet into Access as a table with a new name.

    Then I could do a query that would give me all the columns/fields from the two tables.

    Then I could somehow turn the results of the query into a table. I don't remember the steps in doing that, but I don't think it's too difficult.

    Before I dive into this project, can somebody tell me if it's feasible the way I described it? Any hints on doing it would be helpful, too.
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

  2. #2
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Lou,

    You can do it as you describe by using a MakeTable Query.

    The other option would be to manually revise the existing table definition to add the new items (columns) from your Excel Sheet (this allows you to specify data types, names, sizes, etc as you actually want them to be) then use an Update query to add the new columns data to your existing table.

    HTH
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

  3. #3
    5 Star Lounger Lou Sander's Avatar
    Join Date
    Jun 2002
    Location
    Pittsburgh, PA
    Posts
    855
    Thanks
    140
    Thanked 10 Times in 9 Posts
    The Update Query sounds like a winner. Can I update from an Excel workbook? (I've done a lot of this stuff before, but it was many years ago.)
    Lou Sander
    Pittsburgh, Pennsylvania
    USA

  4. #4
    Super Moderator RetiredGeek's Avatar
    Join Date
    Mar 2004
    Location
    Manning, South Carolina
    Posts
    9,436
    Thanks
    372
    Thanked 1,457 Times in 1,326 Posts
    Quote Originally Posted by Lou Sander View Post
    The Update Query sounds like a winner. Can I update from an Excel workbook? (I've done a lot of this stuff before, but it was many years ago.)
    Yes as long as you have it linked into your DB.
    May the Forces of good computing be with you!

    RG

    PowerShell & VBA Rule!

    My Systems: Desktop Specs
    Laptop Specs

Posting Permissions

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