Connecting to a FoxPro DBF file

From: Duncan (ddimech_at_ads.com.mt)
Date: 11/22/04


Date: Mon, 22 Nov 2004 16:09:23 +0100

Dear All,
I have designed a routine inVB 6 which opens the data from a FoxPro DBF
file, does some manipulation and saves it in an SQL Database

This work fine on the machine it was designed on but when it was installed
on two oth machines it started to give the following error: -

-2147217865 [Microsoft][ODBC Visual FoxPro Driver]File 'client.dbf' does not
exist.

The connection string used is :-
Set DBS_SB = New ADODB.Connection
DBS_SB.Open "UID=;PWD=;SourceDB=" & FilePath &
";SourceType=DBF;Driver={Microsoft Visual FoxPro
Driver};Exclusive=No;BackgroundFetch=Yes;Collate=Machine;"
Set ADO_SB = New ADODB.Recordset
ADO_SB.Open "select * from CLIENT", DBS_SB

and the error appears when the recordset is opened

and the file does exist and it is not corrupted

Thanks and Regards
Duncan



Relevant Pages

  • Connecting to a FoxPro DBF file
    ... I have designed a routine inVB 6 which opens the data from a FoxPro DBF ... does some manipulation and saves it in an SQL Database ... on two oth machines it started to give the following error: ...
    (microsoft.public.vb.com)
  • Connecting to a FoxPro DBF file
    ... I have designed a routine inVB 6 which opens the data from a FoxPro DBF ... does some manipulation and saves it in an SQL Database ... on two oth machines it started to give the following error: ...
    (microsoft.public.vb.general.discussion)
  • Connecting to a FoxPro DBF file
    ... I have designed a routine inVB 6 which opens the data from a FoxPro DBF ... does some manipulation and saves it in an SQL Database ... on two oth machines it started to give the following error: ...
    (microsoft.public.vb.database)
  • Connecting to a FoxPro DBF file
    ... I have designed a routine inVB 6 which opens the data from a FoxPro DBF ... does some manipulation and saves it in an SQL Database ... on two oth machines it started to give the following error: ...
    (microsoft.public.vb.database.ado)