ACC2000: "A Module Is Not a Valid Type" Compile Error Message (208747)
The information in this article applies to:
This article was previously published under Q208747 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you compile a database in Microsoft Access, you may receive the following error message:
A module is not a valid type.
CAUSE
The 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 procedures in the module has a form variable such as
the following:
Dim f as Form
RESOLUTION
Rename the module to a name other than a Microsoft Access object name or a
Data Access Object name.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCESFor more information about naming conventions, click Microsoft Access Help on the Help menu, type guidelines for naming objects in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
| Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
|---|
| Keywords: | kbbug kberrmsg kbpending KB208747 |
|---|
|