nvwildfire
Technical User
I cannot figure out what I am doing wrong and it is getting pretty frustrating. Maybe someone out there can see my error or at least point me in the right direction. The following is the code I am using:
strSQL = "SELECT * FROM " & dlgOpenDBF.FileTitle
Set fConn = New ADODB.Connection
fConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source= " & strFilePath & ";" & _
"Extended Properties=""DBASE IV;"";"
Set frst = New ADODB.Recordset
frst.CursorType = adOpenKeyset
frst.LockType = adLockOptimistic
frst.Open strSQL, fConn
Where dlgopendbf.filetitle = "FMUS_072303.dbf"
and strFilePath = "X:\fuels\GIS_Projects\FMU-Select\GIS_DATA\071703"
I keep getting the following error:
The Microsoft Jet database engine could not find the object 'FMUS_072303.dbf'. Make sure the ofbject exists and that you spell its name and the path name correctly.
All I want to do is read a dbf file into an array using ADO and jet, I was doing this with the foxpro driver but would like to avoid using the foxpro drive because it is not on our xp machines.
Any help on this would be greatly appreciated.
thank you,
kgk
strSQL = "SELECT * FROM " & dlgOpenDBF.FileTitle
Set fConn = New ADODB.Connection
fConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source= " & strFilePath & ";" & _
"Extended Properties=""DBASE IV;"";"
Set frst = New ADODB.Recordset
frst.CursorType = adOpenKeyset
frst.LockType = adLockOptimistic
frst.Open strSQL, fConn
Where dlgopendbf.filetitle = "FMUS_072303.dbf"
and strFilePath = "X:\fuels\GIS_Projects\FMU-Select\GIS_DATA\071703"
I keep getting the following error:
The Microsoft Jet database engine could not find the object 'FMUS_072303.dbf'. Make sure the ofbject exists and that you spell its name and the path name correctly.
All I want to do is read a dbf file into an array using ADO and jet, I was doing this with the foxpro driver but would like to avoid using the foxpro drive because it is not on our xp machines.
Any help on this would be greatly appreciated.
thank you,
kgk