ACC: "User-defined Type Not Defined" Error MessageID: Q182342
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you compile or run code, you may receive the following error message:
Compile Error: User-defined type not defined.
You are referring to an object in an object library that you do not have referenced.
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:
One of the most common object libraries that may cause the error described
in the "Symptoms" section if it is not referenced is the Microsoft DAO
Object Library. If the reference is missing, you may receive this error on
many common DAO commands such as:
Dim db as Database
In Microsoft Access 97: Microsoft DAO 3.5 Object Library
In Microsoft Access 7.0: Microsoft DAO 3.0 Object Library
Function Test()
Dim db as Database
End Function
Keywords : MdlDao PgmOthr
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 27, 1999