I am trying to access a database in VB, so I have tried the following statement:
Which gives the following error:Code:Dim cnn As New ADODB.connection
"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!




Reply With Quote