Solved

Could not lock file

Posted on 2002-04-08
7
1,431 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 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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