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?