I have two connections to different queries in the same access database. The second one always fails (no matter which one I run on first).
When I look at the database, I notice that it has a lock file, which I think is causing the problem. It remains locked until I close the Excel file. Can someone help me unlock db as soon as my import is complete?
Additional Information:
I am using Excel and Access 2010.
Mistake:
"Text file specification" MyQuery link specification "does not exist. You cannot import, export or link using the specification."
Connection string (note: I use Command type: Table):
Provider=Microsoft.ACE.OLEDB.12.0;User ID=Admin
Finally, based on this post , I tried to change my mode from "Share Deny None" to "Read", but that didn't help. I also don't understand why this would be, but I tried.
Edit: I continued to research this problem, but cannot find a solution. Since then, I tried to add an additional statement to the connection string ReadOnly = True, but no luck.
source
share