Solved

linked text file in access locked

Posted on 2012-03-12
2
372 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 37711541
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 58
ID: 37712072
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

734 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