The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills.
CAUSEMicrosoft Access ignores the option flags for all opens except the first for a given window's task, so a system administrator cannot use this technique to test whether a database has been opened exclusively. The technique does not work because Access does not check the option flags. MORE INFORMATIONSteps to Reproduce BehaviorThe following Visual Basic procedure successfully opens the current database, even if the current database has been opened exclusively.
The sample code in this article uses Microsoft Data Access Objects. For this code to run properly, you need to reference the Microsoft DAO 3.6 Object Library.
REFERENCESFor more information about the OpenDatabase method, in the Visual Basic Editor, click
Microsoft Visual Basic Help on the Help menu, type "OpenDatabase method" in
the Office Assistant or the Answer Wizard, and then click Search to
view the topic. Additional query words: prb
Keywords : kbprg kbdta AccCon PgmObj KbVBA |
Last Reviewed: May 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |