ACC: Error Message When Opening Second Instance of .MDB File

Last reviewed: September 4, 1997
Article ID: Q93139
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 a database exclusively and then attempt to open the same database as shared in another instance of Microsoft Access, you receive the following error message.

In Microsoft Access 97:

   You can't open '<path>\<Database.mdb>' for exclusive use because another user
   has the database open.

In Microsoft Access 7.0:

   Couldn't use '<path>\<Database.mdb>'; file already in use.

In Microsoft Access version 2.0:

   The Database is opened by user '<username>' on machine
   '<machine name>'. You can't open this database exclusively.

In Microsoft Access version 1.x, when you open a database as shared and then attempt to open the same database exclusively in another instance of Microsoft Access, you receive the error message:

   Couldn't open file '<path><filename>'.

This message is not very helpful because it does not state why the file could not be opened.

RESOLUTION

Open the database as Shared in all instances of Microsoft Access or close the Exclusive instance of the database, so that Shared instances of the database can be opened.

STATUS

This behavior is by design.

REFERENCES

For more information about opening a database for shared access, search the Help Index for "opening databases," or ask the Microsoft Access 97 Office Assistant.


Additional query words: lock network multiuser
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 4, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.