ACC2000: "User-defined Type Not Defined" Error Message (202192)
The information in this article applies to:
This article was previously published under Q202192 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
For a Microsoft Access 2002 version of this article, see 289664.
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 <database name>. 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.
REFERENCESFor more information about ActiveX Data Objects (ADO), in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type ActiveX Data Objects in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbprb KB202192 |
---|
|