Simple ADO question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am learning to use Steve Arbaugh's Mail and PDF class, and this line copied
directly from his sample code, produces the error "User-defined type not
defined."

Dim conn As ADODB.Connection

What do I need to do?

Thanks.
 
You need to set reference to MS ActiveX Data Object library 2.x (latest is
2.8).
 
LongWayFromHome said:
I am learning to use Steve Arbaugh's Mail and PDF class, and this
line copied directly from his sample code, produces the error
"User-defined type not defined."

Dim conn As ADODB.Connection

What do I need to do?

Thanks.

In Tools | References, set a reference to Microsoft ActiveX Data
Objects
2.# Library.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top