Hi I'm getting this error on both remmed out lines
Googling for it shows some complex stuff, and one problem is a missing DLL.
Can anyone assist in simpler terms? I'm also a bit a sea using Access 2007 whereas normally it's Access 2003.
Is is likely to be a missing reference. I'm copying something from Access 2003 where the code is working OK. Thanks for any help.
Code:
Dim cv As ADODB.Connection
Dim rr As ADODB.Recordset
Dim theName As String, sql As String
Set cv = New ADODB.Connection
Set rr = New ADODB.Recordset
theName = "\\Mach2\e\ListBE.mdb" 'Networked drive e on Mach2
sql = "Select * From Tracks Where Tcat= 1009"
'cv.Open "Provider=Microsoft.ACE.OLEDB.12.0; DataSource =" & theName & ";"
'cv.Open "Provider=Microsoft.Jet.OLEDB.4.0; DataSource =" & theName & ";"
With rr
.Open sql, cv, adOpenKeyset, adLockReadOnly 'Guessing a bit with these values. Tosort when I get this far.
Stop
End With
Can anyone assist in simpler terms? I'm also a bit a sea using Access 2007 whereas normally it's Access 2003.
Is is likely to be a missing reference. I'm copying something from Access 2003 where the code is working OK. Thanks for any help.