Solved

Could not lock file

Posted on 2002-04-08
7
1,423 Views
Last Modified: 2012-08-14
I get this error, 'could not lock file', when i try to open the database.  It is on a network in shared mode but
security has not yet been implemented.  Any suggestions?
0
Comment
Question by:BBrian
7 Comments
 
LVL 2

Expert Comment

by:xtrahands
ID: 6926560
What are you trying to do when you get the error?

It may be that you are trying something that requires exclusive access to the database and someone else is using it.

0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 100 total points
ID: 6928446
Make sure that you have full read/write/delete priviledges for the directory where the MDB resides.

If you don't, Access will have trouble creating the .LDB file used to track locks.

Jim.
0
 

Author Comment

by:BBrian
ID: 6928705
I think that's it.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 57
ID: 6928738
If it's not, bounce back and we can keep working on it.  Also, in the future, you may not want to accept an answer until your sure the problem is solved.

Jim.
0
 

Author Comment

by:BBrian
ID: 6928941
I have been having permission problems with
the directory in question anyway.  Sometimes I get 'could  not lock file' and sometimes I can only open the
datbase read-only.  And sure enough when I checked
the folder in question, there were no write permssions.

Thank you for your feed back.
0
 

Expert Comment

by:chansonpeevy
ID: 26539385
i have the same error when my clients try to access the DB. parent folder security has been resolved. still getting the "cannot lock file" error. i try and go into the security properties of the .ldb file, and it sais i have no permission to view the security properties. anyone see this one?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

830 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