Is there a way of linking to a FoxPro *.DBF file and utilize the current *.CDX file? I do not have it listed in the available(Built-in) list of external linking dBase options. Just in case, I use Access 2000.
I've had problems with earlier versions of FoxPro and ODBC.
However, the following is a way to get at the data"
Code:
Dim rstFox As New ADODB.Recordset
Dim strSQLFox As String
Dim connFoxPro As String
connFoxPro = "Driver={Microsoft Visual FoxPro Driver};" & _
"SourceType=DBF;" & _
"SourceDB=\\yourpath;" & _
"Exclusive=No"
strSQLFox = "SELECT * FROM yourtable.dbf"
rstFox.Open strSQLFox, connFoxPro, adOpenDynamic, adLockOptimistic
With rstFox
.do something
End With
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.