Uptate Column in Access from Excel

mobilpc

New Member
Joined
May 14, 2014
Messages
13
Hi

i need to update/sync existing fields (dont create new row/entry in database) maybe of 2-3 columns (eg. add/update EAN, WEIGHT, COLOUR) in access database from excel sheet using same ID.

The final file structure of the database must remain intact, cause will be imported back to ERP software.

Thanx
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
So, are you saying that you want to update existing records in Access from data in Excel?

If the Excel file contains all the data that you need for that table, you can just link that Excel file to an Access table, and use that as your table in Access (for whatever you are using this for)?

If you are trying to update a "master" Access table, I would recommend linking this Excel file into another Access table, and then create a query between the two tables, and then change it to an Update Query so that you can update the Access records from the Excel ones.
 
Upvote 0
yes, but i am newbie to this

i can export both access and excel sheet with only rows i need to update from excel to access. (i just need to rename rows in excel to match access rows)

so i need to create another database file and create some query in this file to update (not create any new entry) my original exported file from ERP?
 
Upvote 0
You do not need to export anything. You can do this all inside of Access, by linking the Excel file into Access.

I think it would be most helpful to see samples of your Excel file and Access table. And then let us know which key fields we are joining on, and which fields we are trying to update.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
i mean that i can export only rows i wants from both systems where those non synced data are

Excel
EANY_TEST.xlsx
AB
1IDSEAN
2IPH7256BL_EU
3IPH7256GL190198070784
4IPH7128GL_EU
5IPH7256BL_SKV
6IPH7128R
7IPH7256SL
8IPH7128GL_SKV
9IPH764BL_SKV
10IPH7128BL_SKV
11IPH7128RG_SKV
12IPH732GL
13IPH732BLOB_SKV
14IPH7128B_V190198068262
15IPH7128BL_SK
16IPH732BL_SKV
17IPH732JB
18IPH732BL_V
19IPH7128RG
20IPH7128SL_SK
21IPH7128RG_SK
22IPH7128BLC_SK
23IPH732RG190198067906
24IPH732BL
25IPH732BL_EU190198066824
26IPH732GL_EU190198067548
Hárok1


Access
EANY_TEST.xlsx
ABC
1IDIDSEAN
217541IPH7128B_V
316273IPH7128BL_SK
415655IPH7128BL_SKV
516274IPH7128BLC_SK
615811IPH7128GL_EU
715674IPH7128GL_SKV
817153IPH7128R
916552IPH7128RG_SK
1016152IPH7128RG_SKV
1116484IPH7128SL_SK
1216229IPH7256BL_EU
1315762IPH7256BL_SKV
1416454IPH7256GL
1516553IPH7256SL
1616910IPH732BL
1716387IPH732BL_EU
1815761IPH732BL_SKV
1917103IPH732BL_V
2016034IPH732BLOB_SKV
2116391IPH732GL
2216736IPH732GL_EU
2317322IPH732JB
2416480IPH732RG
2517505IPH732RG_V
2616392IPH732SL
2715669IPH732SL_SKV
2815668IPH764BL_SKV
2917523IPH7P128B
3017524IPH7P32B
3118325IPH7P32S
3216455IPH7PL128GL
3316289IPH7PL128JB_SK
3416114IPH7PL128JB_SKV
3516217IPH7PL128SL_EU
3616453IPH7PL256JB_SK
3716216IPH7PL256JB_SKV
3817152IPH7PL256R
3916554IPH7PL256SL
4016082IPH7PL32BL_SKV
4116456IPH7PL32GL
4216022IPH7PL32SL_SKV
Hárok2
 
Upvote 0
Import/link your Excel table into Access.
Then create an Update Query between this changes table and your main Access table.
Here are instructions on how to create an Update Query: Create and run an update query

Post back if you run into issues.
 
Upvote 0
i try to make query, but doesnt work :( the ID are different only IDS are are the same
 

Attachments

  • database.jpg
    database.jpg
    43.4 KB · Views: 7
Upvote 0
Are the "IDS" values in each table unique (meaning, they do not appear more than once in each table)?
If so, you should only join the tables on this one field, and not the other one.

Basically, you only want to join on this one field, and look for values where the "EAN" fields differ.
So that "EAN" part would go in the Criteria of the query, not the join.
 
Upvote 0
yeap, done that way, join only IDS and it works :) thank you

so, i just export datatabase from ERP => make copy of that where i import table from excel => make and run query => delete query and excel table from database => import back to ERP?

is this the right steps?
 
Upvote 0
There may be a few steps that we can eliminate, but I need to have a better understanding of your structure.

Is this ERP database that you ultimately want to update an Access database?
Are you able to work directly in this ERP database, or do you always have to export data out of it?
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,850
Members
449,194
Latest member
HellScout

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