A family of Microsoft relational database management systems designed for ease of use.
Thank you for reaching out to Microsoft Q&A Forum and sharing your experience.
I understand you're encountering an issue with Microsoft Access where the file sharing lock count has been exceeded.
The file sharing lock issue in Microsoft Access typically occurs when multiple users or processes are accessing the same database file simultaneously, causing the lock count to exceed the allowed limit of 255 per user. Every version of Access uses a temporary lock file to manage this, it prevents simultaneous edits to the same records but contains no actual data. For newer databases (with .accdb extension), the lock file is .laccdb; for older versions (like 2002/2003 with .mdb), it's .ldb. These files should automatically delete when the last user closes the database, but sometimes they persist due to crashes, network instability, or incomplete closures, making the database appear locked and potentially triggering errors like "cannot delete Access record locking file".
To better understand, could you please share a few more details?
- What version of Access are you using (e.g., Access 2019 or Microsoft 365)?
- Is the database stored locally on your device or on a shared network/cloud service?
- Have there been any recent changes to the file, your environment, or how it's being accessed?
- Are you seeing any error messages beyond the lock count exceeded notice?
- Is this set up for multiple users?
Based on my research, here are some recommended steps you may consider trying. Before diving in, always back up your database file to prevent any data loss.
- Start by closing all instances of Access on your computer (and any others connected to the file): check Task Manager (Ctrl + Shift + Esc) for any lingering "msaccess.exe" processes and end them if needed.
- Next, navigate to the folder where your database is stored and delete the associated lock file, which will have the same name and location as your main database but with the
.laccdbor.ldbextension (e.g., "MyDatabase.laccdb"). It's safe to remove this manually when everything is closed, though you might need admin privileges or to address permissions if you encounter deletion errors. - You may also consider compacting and repairing the database: Open Access without loading the file, then go to File > Info > Compact & Repair Database, select your file. For shared databases on a network, double-check that you have full read/write permissions and that the connection is stable to prevent incomplete lock releases.
- As a last resort, restart your system. Once cleared, reopen the database using "Open Exclusive" mode initially via File > Open > Browse.
Please understand that our initial response may not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a resolution.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.