ACC: Determining Which User Has Opened Database Exclusively

Last reviewed: September 9, 1997
Article ID: Q169648
The information in this article applies to:
  • Microsoft Access versions 7.0, 97

SUMMARY

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

You must use an operating system tool, such as NetWatcher (a utility that comes with Microsoft Windows) or the Windows NT Server Manager, to determine which user has a Microsoft Access 7.0 or 97 database open exclusively.

MORE INFORMATION

In Microsoft Access 2.0, you can obtain this information by trying to open the database from the most recently used file list. If the database is open exclusively, you receive the following error message:

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

You can also open the .ldb file associated with the database to see who has opened the database exclusively.

However, in Microsoft Access versions 7.0 and 97, the .ldb file is not created when a user opens the database exclusively. When you attempt to open the database from the most recently used file list, you receive the following error message:

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

You receive no information about the user or machine name.

REFERENCES

For more information about NetWatcher, search the Microsoft Windows 95 Help Index for "NetWatcher."

For more information about using Microsoft Windows NT 4.0 Server Manager to view user connections, search the Server Manager Help Index for "viewing: user sessions."

For more information about .ldb files, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q136128
   TITLE     : ACC: Introduction to .ldb Files (95/97)
Keywords          : GnlMu EvnNtw EvnOs kbenv kbnetwork
Version           : 7.0 97
Platform          : WINDOWS
Hardware          : x86
Issue type        : kbinfo


================================================================================


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 9, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.