Reading Visual foxpro table in VB 6.0

  • Thread starter gurusamy sekar via AccessMonster.com
  • Start date
G

gurusamy sekar via AccessMonster.com

Hi all..
I want to try to read visual foxpro free tables.i have my code as

Dim db As New ADODB.Connection
Dim rs As Recordset
If db.State = 1 Then db.Close
db.Open "Driver=(Microsoft Visual Foxpro Driver);sourcetype=DBF;sourceDB=D:\
tab;exclusive=No;collate=Machine"

Here "D:\tab" is my path where free table is present.

But it is giving error as default ODBC driver not specified.
If anyone know how to get this bug plz reply...
Thank in Advance.
 
C

Cindy Winegarden

Hi Gurusamy,

I recommend the FoxPro and Visual FoxPro OLE DB data provider (downloadable
from msdn.microsoft.com/vfoxpro/downloads/updates). The connection string
looks like:
"Provider=VfpOleDB.1;Data Source=C:\Temp;" .

For ODBC, try putting curly braces around the driver name:
"Driver={Microsoft Visual Foxpro Driver};......

--
Cindy Winegarden MCSD, Microsoft Visual Foxpro MVP
(e-mail address removed) www.cindywinegarden.com
Blog: http://spaces.msn.com/members/cindywinegarden
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top