-
1
- #1
I have the following code to connect to an Access db, but I am getting "Run time error 3706: Provider cannot be found. It may not be properly installed."
My code is:
mydB = "C:\Financial_Reporting\Data_Sources\Replicable\" & _
"Variables_Data.mdb"
myPwd = "admin"
Set myCnn = New ADODB.Connection
With myCnn
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.2.5;" & _
"Data Source=" & mydB & ";" & _
"Persist Security Info=False;" & _
"Jet OLEDB
atabase Password=" & myPwd
myCnn.Open
End With
How do I know which provider to use? Can anyone help me? I am using VB 6 and Access 97.
thanks
Jo
My code is:
mydB = "C:\Financial_Reporting\Data_Sources\Replicable\" & _
"Variables_Data.mdb"
myPwd = "admin"
Set myCnn = New ADODB.Connection
With myCnn
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.2.5;" & _
"Data Source=" & mydB & ";" & _
"Persist Security Info=False;" & _
"Jet OLEDB
myCnn.Open
End With
How do I know which provider to use? Can anyone help me? I am using VB 6 and Access 97.
thanks
Jo