Solved

linked text file in access locked

Posted on 2012-03-12
2
317 Views
Last Modified: 2012-03-12
Hi,

I have a log file that gets updated by another process (excel) on a random time - whenever user does something in the excel file.

I want to link the table in the access database and read from it to do some additional analysis.  But I noticed that if I have the file open in access, it locks the file from being able to update through excel.  Is there any way around this so that I can have excel update the files even when its being opened by access?

Basically I just need it to read the file from access, and give a write access for the excel program.

OK... in the case where this isn't possible.... what is the simplest way to do an insert into access table from excel vba?  Thanks!
0
Comment
Question by:iamnamja
  • 2
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
Comment Utility
You'd have to open the file via VBA as read only.  There's no way I can think of to simply link to it and have it read only.  That's the way the text ISAM driver works.

Jim.
0
 
LVL 57

Expert Comment

by:Jim Dettman (Microsoft MVP/ EE MVE)
Comment Utility
I did BTW go back and look at the schema.ini options and what I said was correct; if you link to a text file as a table, it's always opened read/write.

Jim.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now