ACC: "User-defined Type Not Defined" Error Message (182342)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q182342 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you compile or run code, you may receive the following error message:
Compile Error: User-defined type not defined.
CAUSE
You are referring to an object in an object library that you do not have
referenced.
RESOLUTION
You must add a reference to the object library that contains the object
that you are using in code. To do so, follow these steps:
- Open any module in the database that is generating the error described
in the "Symptoms" section of this article.
- On the Debug menu, click Compile All Modules. Note the line of code that
is highlighted when you receive the error message.
- On the Tools menu, click References.
- Click to select the object library that contains the object referenced
by the line of code that is highlighted.
Modification Type: | Major | Last Reviewed: | 11/4/2003 |
---|
Keywords: | kbprb KB182342 |
---|
|