ACC: "A Module is Not a Valid Type" Compile Error MessageLast reviewed: May 14, 1997Article ID: Q138018 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you compile a database in Microsoft Access 7.0 or 97, you may receive the following error message:
A Module is not a valid type. CAUSEThe module has the same name as a Microsoft Access object or a data access object, and it contains a variable declared as the same object type as its name. For example, if the module is named Form, you will receive the error message if any of the module's procedures contains a form variable such as the following:
Dim f as Form RESOLUTIONRename the module to a name other than a Microsoft Access object name or a data access object name.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 7.0 and 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
REFERENCESFor more information about naming conventions, search the Help Index for "naming conventions," or ask the Microsoft Access 97 Office Assistant. |
Keywords : CnvOthr kberrmsg kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |