The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. This article applies to a Microsoft Access database (.mdb) and a Microsoft Access project (.adp). SYMPTOMSWhen you create a new module in Microsoft Access 2000, Option Explicit does not appear in the Declarations section of the module. By default, only the following line appears in new modules:
In earlier versions, the following two lines appeared in new modules by default:
CAUSEAll Microsoft Office 2000 applications share the same interface for editing Visual Basic for Applications code. The Visual Basic Editor is a new interface for editing Visual Basic for Applications code in Access 2000. The editor uses the same default settings as Microsoft Visual Basic and earlier versions of other Microsoft Office applications that used the editor. RESOLUTIONIn order to have Option Explicit automatically inserted into new modules, turn on the Require Variable Declaration option in the editor.
MORE INFORMATION
Existing modules are not effected by the Require Variable Declaration setting. Additional query words: pra prb
Keywords : kbprg kbdta |
Last Reviewed: June 1, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |