|
-
Jun 5th, 2012, 03:09 AM
#1
Thread Starter
New Member
ADODB.Connection object not recognized
Hello,
I am fairly new to VB and have just started my first code. I want to create a connection to an SQL database, and I used the standard VBA code:
Code:
Dim c As ADODB.Connection
Set c = New ADODB.Connection
c.Open "DSN=fusion"
However, when I try to run this program, my editor gives me an error saying 'the type defined by the user is undefined'. What does this error mean, and how do I rectify it? Is this a problem of the header files? In that case, how do I include the relevant headers?
-
Jun 5th, 2012, 03:31 AM
#2
Re: ADODB.Connection object not recognized
u need to set the refference, see the ADO tutorial in my signature.
Tags for this Thread
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
|