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