Update a linked spreadsheet from Access

dcoons

Board Regular
Joined
Apr 21, 2002
Messages
56
I used to update linked spreadsheets from a query in access with no problems in an earlier version of access (97). Now (access 2003) I don't seem to be able to.

Example-I link to tab "policies" in an excel file that contains policy counts by zip code. In an access database, I have a table zips with zipcodes and the county and state they are in. I want to add the county to the excel file. I set up a query with the linked excel tab and the access table and join them on the common zip field. Then try to do an update on [policies]![county] from [zips]![county] with [policies]![zip] joined to [zips]![zip]. Field types match etc. there's no obvious reason to me why this cant be done

I get a "cant update" error. When I go to the linked table and try to edit, I can't. The spreadsheet is not write protected or otherwise in use. Is there something that changed in the linking process between access 97 and access 2003? I can import and do the update and then export, but what a lot of extra work--can I update the spreadsheet directly somehow?

Tx
Dale
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Is there something that changed in the linking process between access 97 and access 2003?
Yes, beginning with version 2002 or 2003, Access lost the ability to update linked Excel sheets. It has something to do with some copyright battle or something like that. I'll see if I can find a link to that information.
 
Upvote 0
Just beautiful. So an import is required to update the data?
I don't think you need to import anything into Access, you can link the Excel file to Access to get what you need. However, to update the Excel file in the end, I think you would need to export from Access at that point (and import that into Excel).

Conceivably, it might also be possible to come up with an elegant VBA solution to update an existing Excel file from Access.

Of course, the really simple solution would be to use an older version of Access (i.e. 2000) where the capability to update linked files still exist. But that may not be feasible or possible (unless you have an old copy available to you).
 
Upvote 0
thanks for the info--theres no going back on this one. Its not a frequent enough problem to write code for, so i'll be importing and exporting.
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,249
Members
448,879
Latest member
oksanana

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