dim ADODB.connection

D

Dave Dawson

Can anyone tell me why the following would generate a "User-Defined type not
defined" error?

Dim cnnFLDCW As ADODB.Connection

Dave
 
B

Brendan Reynolds

Probably you don't have a reference to the ADO object library. In the VBA
editor, choose References from the Tools menu and look for "Microsoft
ActiveX Data Objects <version number here> 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

Top