View Single Post
  #1 (permalink)  
Old August 31st, 2006, 11:30 AM
tencelos tencelos is offline
Registered User
Join Date: Aug 2006
Location: Los Angeles, CA, .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Importing spreadsheet data with more control

I was wondering if there was a way to import a single line of an excel spreadsheet and then refer to the individual columns, in order to overwrite certain values of an existing record, but not all. I imagine I will need to get the spreadsheet row first into a temporary variable before I write some of its values to the database. If there is another way to do the following please let me know.

Here's the situation
Access table with existing data:
fields: PartNumber, Manufacturer, ConfigDate
PartNumber is unique, but is not the primary key.

Excel Spreadsheet:
columns(fields): PartNumber, Location, ConfigDate

I want to import the spreadsheet one line at a time and overwrite "ConfigDate" for the record in the database with the PartNumber corresponding to the one in the spreadsheet.

I'm pretty new to Access so excuse any of my incorrect terminology. Any help would be great, thanks.