
Accessing FoxPro using VB 6.0 SP3
Try using the following connection string to access your Fox database:
oConn.Open "Driver={Microsoft Visual FoxPro Driver};" & _
"SourceType=DBF;" & _
"SourceDB=c:\somepath\mySourceDbFolder;" & _
"Exclusive=No;"
Just specify the path to your Fox or dBase file in the SourceDB clause, and
you should be in business. You can then execute "SELECT * FROM tablename"
queries.
Hope this helps!
Steven Bras, MCSD
Microsoft Developer Support/Visual Basic WebData
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.