InstructionWhich7142
Registered User.
- Local time
- Today, 21:32
- Joined
- Feb 24, 2010
- Messages
- 203
I've used ODBC for most of the tables but there are some that use VFP9.0 features that aren't support by ODBC (vfp6), the suggestion is to use OLE DB, I can get a connection string to execute like this:
but I don't know what to do from there, even if I get it as a recordset that still doesn't help as I don't know how to get a recordset with unknown field names into a table?
I want to write this as a function that'd work for any table, not a specific table (also most tables have 30+ fields so manual isn't really an option anyway)
Thanks
Code:
Set con = CreateObject("ADODB.Connection")
con.ConnectionString = "Provider=vfpoledb;Data Source=\\CompZ\Compop_Z.dbc"
con.Open
I want to write this as a function that'd work for any table, not a specific table (also most tables have 30+ fields so manual isn't really an option anyway)
Thanks