Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Could not lock file

Posted on 2002-04-08
7
Medium Priority
?
1,435 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
[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
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 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 400 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 58
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

719 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