We help IT Professionals succeed at work.

linked text file in access locked

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!
Comment
Watch Question

President / Owner
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2017
Commented:
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.
Jim Dettman (EE MVE)President / Owner
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2017

Commented:
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.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.