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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

accessing Visual FoxPro tables in VB6?

Status
Not open for further replies.

violetstarlight

Programmer
Aug 7, 2002
23
US
Does anyone know if you can access a FoxPro table data in Visual Basic 6? I am writing an app that has to access data from a FoxPro program that was written in FoxPro 6.0.

Any help would be great! :)
 
This is definately very helpful, just one question. What would the Driver be in the connect statement? ODBC, etc?

References: MS RDO 2.0
Dim SQL As String
Dim cn As New rdoConnection
Dim rs As rdoResultset

cn.Connect = "SourceType=DBF;" _
& "SourceDB=C:\Rob;" _
& "Driver={Microsoft Visual FoxPro Driver}"

cn.CursorDriver = rdUseOdbc
cn.EstablishConnection "rdDriverNoPrompt"

SQL = "SELECT * FROM TableName" 'should be a free table

Set rs = cn.OpenResultset(SQL, rdOpenKeyset, rdConcurRowVer)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top