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 / Modules / DAO / VBA / December 2005

Tip: Looking for answers? Try searching our database.

file access error in opening excel file linked to ms access table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
topbrahmin@gmail.com - 07 Dec 2005 16:41 GMT
Hi
I have a table in ms access that is linked to a file in excel. For
reasons that are complicated to explain, my vba code must change a cell
in the excel file (i do that using a ADODB connection), and then launch
the excel file (i use the runapp macro), which refreshes the sheet
(traditional refresh methods dont work). Then I go back to using the
linked table that has the new data.

My problem is that the above process works most of the time, but
sometimes, it gives me a "File access denied" message when launching
the excel file. I cannot understand why since it works many times, but
then seemingly randomly it fails. The files are all on a personal drive
so nobody else is using it at the same time.

Any help would be greatly appreciated
Allen Browne - 07 Dec 2005 17:01 GMT
Microsoft recently mutilated the ability to change Excel data from Access.

See:
   Cannot change, add, or delete data in linked Excel tables in Access 2002
or 2003
at:
   http://support.microsoft.com/kb/904953/

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> I have a table in ms access that is linked to a file in excel. For
> reasons that are complicated to explain, my vba code must change a cell
[quoted text clipped - 10 lines]
>
> Any help would be greatly appreciated
 
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.