O
OldEnough
I am new to ADO programming , having trouble getting a connection string to
operate properly
the following code generates an error stating that the provider could not be
found and may not be installed properly. I have visual studio running on the
same laptop and the provider string does not generate a problem. Is this a
reference problem?
Dim strSQL as String
Dim cnnName as New ADOB.Connection
Dim rs as New ADOB.Recordset
With cnnName
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Open CurrentProject.Path & "\MyFilePath.mdb","Admin",-1
End With
strSQL = "Select * From tblEmployees"
With rs
.ActiveConnection = cnnName
.CurserType = AdOpenKeySet
.LockType = adLockOptimistic
.Open strSQL
End With
more code
operate properly
the following code generates an error stating that the provider could not be
found and may not be installed properly. I have visual studio running on the
same laptop and the provider string does not generate a problem. Is this a
reference problem?
Dim strSQL as String
Dim cnnName as New ADOB.Connection
Dim rs as New ADOB.Recordset
With cnnName
.Provider = "Microsoft.Jet.OLEDB.4.0"
.Open CurrentProject.Path & "\MyFilePath.mdb","Admin",-1
End With
strSQL = "Select * From tblEmployees"
With rs
.ActiveConnection = cnnName
.CurserType = AdOpenKeySet
.LockType = adLockOptimistic
.Open strSQL
End With
more code