Skip to content
Advertisement

How to Update or Replace records all DBF in one folder based on fields in all table with SQL via ODBC in VB.NET

How to Update or Replace records all DBFs in one folder based on fields across tables with SQL via ODBC in VB.NET?.

If there is another best solution. I mean the fields in all database tables in one folder named “ITM” So I want to change or update e.g. “TEST R 1000″ to TEST RC 1000 LTP” If there are other alternatives through other database providers please recommend. Example screenshot I attach below so example I have DBF table A,B,C,D,E I want to change “TEST R 1000″ to TEST RC 1000 LTP” or that I marking yellow

TABEL DBF Error code

Advertisement

Answer

When it is VFP, there is no official ODBC driver after version 6.x. There are ODBC drivers for Sybase (ADS) but as far as I know they are not for free unless it is local data (it has been over 10 years I have last tried them).

Instead you should use VFP OLEDB driver – VFPOLEDB

Next, tablenames A,B,C,…E is not good because of historical reasons, let’s instead assume tableNames are A_,B_, …E_ then you could do what you are asking for easily:

EDIT: Updated version for old VB versions:

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement