Results 1 to 2 of 2
  1. #1
    vickan240sx is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    May 2012
    Posts
    34

    Importing excel file to append a table

    Hi,



    Is the record is already existing in access, but a few fields are blank, is there any way to import an excel file that just updates those blank fields for the specific record?

    For example,

    I have an excel file that includes files that are ready to ship out. My access database already has those file names, but does not have the shipping box number. Is there any way to import the excel file into my database, have it find those specific file names and update the shipping box number field? The excel file won't be adding any new records, just appending existing records.

    Any help is greatly appreciated.

    Thank you.

  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    As long as you have a unique field common to both the Access table and spreadsheet (filename?), you can do this.

    First, create a link to the Excel spreadsheet (this is File - Get External Data - Link Tables in Access 2003; I'm not sure what it is in A2007). Once you have done that, you can use the Excel spreadsheet in a query as you would a regular table.

    Create an Update query joining the Access Table and the Excel spreadsheet, then update the MS Access fields from the corresponding columns in the spreadsheet. That should do it for you.

    John

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

Similar Threads

  1. Importing .CSV file to excel
    By herbc0704 in forum Import/Export Data
    Replies: 1
    Last Post: 05-17-2012, 05:25 PM
  2. Importing Excel file based on Criteria
    By Kinez101 in forum Programming
    Replies: 1
    Last Post: 04-18-2012, 12:55 PM
  3. importing data from an excel file
    By slimjen in forum Access
    Replies: 3
    Last Post: 09-21-2011, 12:38 PM
  4. Importing an Excel file
    By bvtterflygirl in forum Import/Export Data
    Replies: 5
    Last Post: 02-24-2011, 11:54 PM
  5. importing csv file to append record
    By Tim Hardison in forum Import/Export Data
    Replies: 1
    Last Post: 01-14-2010, 04:24 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