I am trying to access a database in VB, so I have tried the following statement:

Code:
Dim cnn As New ADODB.connection
Which gives the following error:

"Compile Error: User-defined type not defined"

This must be something very simple...but what?

I've successfully established database connection in ASP using: ccn = Server.CreateObject("ADODB.connection")
so I don't understand why the statement in question in invalid.

Thanks for any help!