Table of Contents

     


    Access Database Repair

    How to Fix MS Access Database Error “File Already in Use”?

    info-icon Our content follows trusted Editorial Standards - accurate & unbiased.

    Table of Contents

      Summary: Access error 3045 — “Could not use database; file already in use” — occurs when Access fails to read or generate lock files, often while opening a database on a server or after modifying its folder. This prevents users from accessing the database. This blog explains the top 6 methods to fix it with step‑by‑step instructions. To resolve the error, close all open files, check folder permissions, verify your internet connection, ensure the database path uses the correct UNC format, and repair the database with Compact & Repair or Stellar Repair for Access if needed.

      You may encounter the error 3045 – “Could not use database; file already in use” while opening or modifying the database in MS Access. It is one of the common run-time errors in the Access application. It occurs when you try to open a database that is already in use by different users or was previously opened in any other instance. The error usually occurs when accessing the database (.accdb/.mdb) located on a server/network. It happens because the Access database engine fails to read or generate the lock files.

      The complete error message appears as:

      "Could not use <name>; file already in use. Error 3045: The specified file is currently being used by another user or session."

      Let’s discuss the reasons that may lead to such an error and the solutions to resolve it.

      Causes of Access Database Error “file already in use”

      Some possible causes of the “Could not use file; already in use” error in the Access database are as follows:

      • Corrupt or missing lock files.
      • Users lack create/write/delete rights in the database folder.
      • The database you are trying to access is corrupted or damaged.
      • Trying to update the database that is already open.
      • You might be using an incorrect path to open the database.
      • Microsoft Jet Database failed to generate the locking information file.
      • If the error appeared immediately after a Windows Update or Microsoft Office update, the cause is likely a known bug patched by Microsoft

      Methods to Fix Access Database Error ‘file already in use”

      Below are some methods that can help you resolve the “file already in use” error in MS Access.

      Method 1: Check and Provide Desired Permissions

      The “file already in use” error can occur when you do not have permissions to modify the folder in which the database file is located. So, make sure you have the read, write, and create permissions for the folder where the database is stored. To check and provide permissions, follow these steps:

      • Go to Program Files and search for the desired folder.
      • Right-click on the folder and select Properties.
      Right-click on the folder and select Properties
      • Click Security Tab > Advanced.
      Click Security Tab > Advanced
      • In the Advanced Settings window, click on Change Permissions.
      click on Change Permissions
      • Select Administrators > Edit.
      • Change the Apply to drop-down to This Folder, Subfolder, and Files.
      • Select the Full Control box below the Allow column button.
      • Click OK > Apply.

      Method 2: Download Microsoft Office Updates

      Some users have reported encountering the error ‘Could not use the path to the database.accdb; file already in use’ after downloading the MS Office updates, specifically for Office 2013 and Office 2016. However, Microsoft released other updates to fix the issues. To download the updates specific to your Office version, refer to this Microsoft Guide.

      If you’ve recently upgraded your MS Office version or installed the latest updates, and are facing this error, you can try reverting back to the previous version or uninstalling the recent updates.

      Method 3-Delete the Lock File (.laccdb / .ldb)

      Sometimes, you may encounter “file already in use” error in Access due to lock  information files. You may face this situation when a .laccdb or .ldb file remains after a crash or improper system shutdown. The lock file is deleted automatically when the user closes the database. If it persists, then Access assumes the database is still open and leads to this error.  To resolve this, first make sure you’ve closed all Access sessions and then locate the database folder, find the lock file, and delete it manually.

      Method 4: Check the Path of the Database

      The “file already in use” error in MS Access can also occur if the path to the database.accdb file is incorrect. Make sure you’re opening the database using the standard UNC path. You can see the default path of the database using the following steps:

      • Go to File > Options.
      • In the Access Options window, check the path next to the Default database folder option.
      Access Options window

      Method 5: Close all Opened Access Files

      You may also encounter the “file already in use” error if multiple Access database files are open. You can just close all the Access database files using the below steps:

      • Place your cursor on the Taskbar and right-click on it.
      • Click on Close all Windows.
      Click on Close all Windows

      Note: Modern Windows versions may not show this option universally. In such cases, use Task Manager to end all running Microsoft Access processes and ensure no instances remain open

      Method 6: Repair Corrupt Access Database

      Database corruption can cause Access to mishandle its own file‑locking mechanism, resulting in the “file already in use” error even when no other user has the file open. In this case, you can use the Microsoft inbuilt utility – Compact and Repair to repair the corrupt database. Here’s how to use this tool:

      • Open the Microsoft Access application.
      • Double-click on Blank desktop database.
      Blank desktop database
      • Go to File > Close.
      • On the Blank Database window, click File.
      • Click Compact and Repair database, under Database Tools.
      Click Compact and Repair database
      • Choose the database you need to Compact and Repair and click on Compact.
      Compact and Repair
      • Once the process is complete, a compacted and repaired copy of the Access database will be saved at the actual location where your database is stored.

      If the Compact and Repair utility fails to fix the corrupted database then you can use a professional Access repair tool, such as Stellar Repair for Access. It is an advanced tool to repair corrupt MDB and ACCDB files. It recovers all the database objects, like forms, macros, tables, deleted records, modules, etc. The software allows you to preview the recoverable data before saving it. It is compatible with database files of MS Access 2019, 2016, 2013, and earlier versions.

      How to Fix “Access Database in Use” Error Caused by Severe Corruption Using Stellar Repair for Access?

      • Run the Stellar Repair for Access software. The software’s main interface with a ‘Select Database’ dialog box will open. Use the Browse option to select the corrupt Access database file and then click Repair to begin the repairing process.
      Stellar Repair for Access software

      Note: Use the Find button to find the file if you’re not aware of its location. The process of searching a database file across all the subfolders might take some time to complete. 

      • The corrupt Access database file is under repairing process. Recommended not to stop the process in-between.
      corrupt Access database file is under repairing process
      • Hit the OK button when the ‘Repairing Complete’ message box pops up.
      Repairing Complete
      • All the repairable objects, such as tables, queries, forms, etc., will be displayed in a tree-view structure in the left pane. Expanding the objects will show all the repairable child objects.  
      repairable objects
      • Now check the results in the preview, then click Save Database.
      click Save Database
      • Choose either a default location or a new folder to save the file.
      Choose default location
      • You will get the following message on completion of the repair process.
      completion of the repair process
      • Go to the location where the repaired Access database file is saved and start using it in your MS Access application.

      Closure

      The Access database error “file already in use” can occur due to numerous reasons, such as incorrect folder permissions, corrupted locking file, etc. You can follow the methods mentioned above to fix the error. If the corruption in .ACCDB/.MDB is behind it, then you can take the help of the built-in utility-Compact and Repair tool to repair it. If it fails, then you can use a professional Access database repair software, such as Stellar Repair for Access. It can easily  repair highly corrupted MDB/ACCDB files of large size . Also, it can help you quickly recover database objects like macros, modules, forms, etc., with 100% integrity.  You can even download the tool’s demo version of the software to evaluate its performance.

      FAQs:

      Access creates an information file ( .ldb file / .laccdb file) along with the main database when you open a database file on a network file share or stored on a server. This file maintains a record of all opened databases to prevent simultaneous write conflicts. If the Access fails to create or access this locking file, it can lead to the "file already in use" error.
      The .laccdb file is an Access locking information file, which is created automatically when you open the .ACCDB files. Also, it gets deleted on closing. It tracks which users have the database open and helps prevent write conflicts in multi-user environments. You can safely delete it manually if an .laccdb file exists when no users have the database open.
      Not necessary. It often indicates other reasons, like a permissions or locking file issue, rather than corruption.
      You can face this Access 3045 error ‘file already in use' in all versions of Microsoft Access, including Access 2007, 2010, 2013, 2016, 2019, 2021, and Microsoft 365. However, it is most frequently reported in network environments regardless of the Access version.
      Yes, Stellar Repair for Access can resolve this error if it has caused by corruption in database files.

      To prevent this file-in-use error in Access, you should make sure

      • You have all permissions on the database folder on all user accounts, like Read, Write and Create.
      • Use the full UNC path to open the database rather than a mapped drive
      • Enable Access's built-in record locking to prevent conflicts.
      • Schedule regular Compact and Repair runs. It helps you prevent file size and corruption growth in shared databases.
      "File already in use" means Access cannot create or access the locking information file, whereas "Database is locked" means the database is opened, but it is locked by another user in exclusive mode.

      About The Author

      Monika Dadool linkdin

      Monika Dadool is a Senior Content Writer at Stellar with over 5 years of experience in technical writing. She is a tech enthusiast and expert who specializes in writing about SQL Server, MySQL Server,...

      8 comments

      1. Every time I try to open Access file I get an error message ‘Access database already in use”. So, to fix this issue I tried manual solutions. But it doesn’t work to fix this error.

        Should I try this one Access database repair tool?

      2. At work, we have an Access database created by Access 2000, used as a backend for ASP.net. I can have Access 2000 open on the server and users can still use it all day long. I was testing something at home and I have Access 2003 on my test server.

        The database is opening in “shared” mode, but I get a “file in use” error if, on the server, I just have the database open in Access 2003, not adding data to a table or editing columns or anything. Just open. Close the database in 2003 and it starts working in my ASP.net app.

        My question is, how to resolve Access error? So, I can access in Access 2003 version also.

      3. I’m working on MS Access 2013 database and I have saved the System.mdw file to a folder on the Server and linked all users to it. When multiple users attempt to log in, they get the message “file already in use”.

        Now how I resolve this error?

        1. Hello Ronald,

          Please review all file permissions (‘read’, ‘write’ and ‘create’) carefully to identify the root causes.

      4. I have a running website which is live Access database using ASP.NET 2.0. I got this error:

        “file already in use”.

        HELP!

      5. Sometimes, an unknown error is responsible for the error in Access database file. In this situation, you should run Stellar Repair for Access.

      6. I am getting this error when saving as Access database file. Yesterday, I switched to New Windows 10 PC. Is new operating system is responsible for this one error? 

      Leave a comment

      Your email address will not be published. Required fields are marked *

      Google Trust
      Related Posts

      WHY STELLAR® IS GLOBAL LEADER

      Why Choose Stellar?

      • 0M+

        Customers

      • 0+

        Years of Excellence

      • 0+

        R&D Engineers

      • 0+

        Countries

      • 0+

        PARTNERS

      • 0+

        Awards Received

      BitRaser With 30 Years of Excellence
      Technology You Can Trust
      Data Care Experts since 1993
      ×