ACC: Error Message "Couldn't Open File" in Shared Environment

Last reviewed: September 8, 1997
Article ID: Q103254
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you open multiple instances of a Microsoft Access database, even though multiuser options have been set, you may receive the following error message.

   In Microsoft Access 7.0 and 97:

      Couldn't use '<path>\databasename.mdb'; file already in use.
        
   In Microsoft Access versions 1.x and 2.0:

     <Database name> This file is already in use. Use a new filename or
     close the file in use by another program.

CAUSE

This problem can occur if you try to open a shared database by choosing it from the list at the bottom of the File menu instead of using the Open Database command on the File menu. When you open a database by choosing it from the bottom of the File menu, Microsoft Access opens the database with the same settings as the last time it was opened. If that database was last opened in Exclusive mode, clicking it from the bottom of the File menu will attempt to open it again in Exclusive mode, even if your Default Open Mode option is set to Shared.

This problem will also occur when the database is on a read-only drive and the first user to open the database has Read rights to the folder.

RESOLUTION

Running a single instance of Microsoft Access, open that particular database with the Open Database command on the File menu. Then close the database, thereby saving the correct settings to the database.

MORE INFORMATION

Steps to Reproduce Behavior

This problem occurs when Microsoft Access is being shared on a network, but can be reproduced on a stand-alone computer with the following steps:

  1. Open the sample database Northwind.mdb (or NWIND.MDB in versions 1.x and 2.0) by clicking Open Database on the File menu. Click to select the Exclusive check box, and then click Open.

  2. On the Tools menu, click Options.

    NOTE: In versions 1.x and 2.0, on the View menu, click Options.

  3. Click the Advanced tab and set the Default Open Mode to shared.

    NOTE: In versions 1.x and 2.0, the Default Open Mode is in the Multiuser/ODBC settings.

  4. Quit Microsoft Access.

  5. Restart Microsoft Access, and then open the sample database Northwind.mdb by selecting the database from the bottom of the File menu.

  6. Start a second instance of Microsoft Access.

  7. Open the sample database Northwind.mdb by clicking Open Database on the File menu. Note that you receive the error message.


Additional query words: UI recent
Keywords : GnlMu kberrmsg kbusage
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb
Solution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.