Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel retrieving data from Access in Read-Only directory

Status
Not open for further replies.

pfan

Technical User
Sep 26, 2001
5
US
Hello.

I have an Excel file that retrieves data from Access. It works fine except when the directory that the .mdb resides is set to read-only (or is on a CD).

When I run my code I get "Run-Time Error '3050': Could Not Lock File."

I know this stems from Access trying to create a .ldb file in the same directory as the .mdb.

Does anyone know a way to still access the data with code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top