PRB: ADO: Compile Error: User-Defined Type Not Defined (184609)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
This article was previously published under Q184609 SYMPTOMS
When you compile your ADO project, you receive the following error:
Compile error:
User-defined type not defined
This can occur on either a Connection or Command object.
CAUSE
You may have referenced one of the following libraries instead of the
Microsoft ActiveX Data Objects (ADODB) type library:
- Microsoft ActiveX Data Objects Recordset (ADOR) type library.
-or- - Microsoft ActiveX Data Objects (Multi-dimensional) (ADOMD) type library.
RESOLUTION
Remove the incorrect type library reference from your project, and add a
reference to the correct type library.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 8/23/2001 |
---|
Keywords: | kbDSupport kbprb KB184609 |
---|
|