There is compile error 'user-defined type not defined' I get in VB6 when I was tried to compile this code. Can anybody tell me what I need to do to solve this error? Following is the line for which I got the error:
Public Conn As ADODB.Connection
Public rs As ADODB.Recordset
You need to add the reference to the ADO type library:
You may also want to look at Referencing the ADO Libraries In a Visual Basic 6 Application from the ADO Programmer's Guide.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With