Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / November 2004

Tip: Looking for answers? Try searching our database.

Import excel dat to update and add new records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bdehning - 23 Nov 2004 23:29 GMT
How does one import records from an excel spreadsheet and overwrite existing
field data for records with updated information and also add totally new
records at the same time?

One table has Policy Number as a primary key with no duplicates and the
other table has Location ID as primary key with no duplicates.  

The importing new records is the easy part and is what I am doing now.  I
now need the ability to update existing fields for records in the database.

Signature

Brian

David Seeto - 29 Nov 2004 04:12 GMT
I don't think you can do this with the normal Import function in MS Access - you could, however, write a function to do this by (a) importing the spreadsheet into copy of the table, (b) deleting any records in your original table that exist in your import copy, and (c) appending all of the records from your import table into your original table.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.