Private Sub Connect()
On Error Goto ErrHandler
Dim Cn AS New Adodb.Connection
Cn.open "..."
Msgbox "Success!"
Exit Sub
ErrHandler:
    MsgBox Err.Description 
End Sub