ACC1x: How to Determine If Database Is Open Exclusively (1.x)Last reviewed: April 24, 1997Article ID: Q114837 |
The information in this article applies to:
SUMMARYThis article describes a method using Access Basic that you can use to determine if a database is open exclusively in Microsoft Access version 1.x. This article assumes that you are familiar with Access Basic and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information on Access Basic, please refer to the "Introduction to Programming" manual.
MORE INFORMATIONWhen a database is open exclusively, no other program or process can access that database. When a database is open shared, other programs and processes can get shared access to the database. This article demonstrates how to use the Open statement in Access Basic to determine if a database is open exclusively by using the Open statement's Shared argument to try to access the database file in shared mode. If the database is open exclusively, an error will occur. Trapping for the error determines whether the database is open exclusively or not. This function may be useful to Access Basic programmers who want to warn their applications' users that a database is open in the wrong mode. The following steps demonstrate how to determine whether a database is open exclusively:
REFERENCESMicrosoft Access "Language Reference," version 1.x, pages 343-345 For more information about accomplishing the same task in later versions of Microsoft Access, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q117539 TITLE : ACC: How to Determine If Database Is Open Exclusively |
Keywords : GnlMu kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |