Updating Specific Fields from Excel to Access

michaeltchurch

New Member
Joined
Jul 1, 2016
Messages
2
I consider myself relatively dangerous in regards to VBA, Access and Excel. I have a simple table in Access that feeds a Dashboard and PivotTables in my Excel project. Monthly I receive a new spreadsheet of data that has to be imported into my database in Access. Here lies the problem. Sometimes, the monthly data has just "updated" data for an already existing record in my database. I would like to use VBA or something of the like to analyze my current database for the existing record, and only update the new info for the record. Otherwise, the new monthly data is entered in every month as new records and causing duplicates with different data.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the forum,

Suggestion, place the new spreadsheet into a temp table in Access, then you can run a query to remove duplicates and append the new dataset into your main table. As this can be setup with manual imports and tables and queries you then have a process you can run from either excel to run the queries and import through access macros.
 
Upvote 0
Trevor G-
Thanks for the quick reply. I thought that this might be the only way.........which may take a little bit of messing around to get it right. I thought that there might be a string of VBA code or something that I am missing vice doing the temp table. Many thanks from Hawaii!
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,119
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top