Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FoxPro 2.6 linking???

Status
Not open for further replies.

TheRealDeal

Technical User
Nov 16, 2001
187
US
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
Tyrone Lumley
augerinn@gte.net


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top