ACC: "User-defined Type Not Defined" Error Message
Article ID: 182342
Article Last Modified on 1/22/2007
APPLIES TO
- Microsoft Access 95 Standard Edition
- Microsoft Access 97 Standard Edition
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.
Keywords: kbprb KB182342