|
-
Jan 17th, 2003, 05:51 AM
#1
Thread Starter
New Member
Declare Connection Object
I am trying to declare a connection object in the main.bas module of my VB6 project.
I have tried the following statements:
Dim db As ADODB.Connection
and
Dim db As Connection
I get the following compile error for both
"User-defined type not defined"
Can anyone help?
Thanks
Roger
-
Jan 17th, 2003, 06:07 AM
#2
You need to reference the ADO library:
Project > References > Microsoft ActiveX Data Objects 2.x
-
Jan 17th, 2003, 09:39 PM
#3
Thread Starter
New Member
Thanks.
That makes all the diference, I didn't come across it in my book and I find MSDN to be something of a nightmare to consult.
Roger
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|