Oscar Rivera
June 3rd, 1999, 12:23 PM
Does anyone know how to get the tables names from
a mdb database using ADO (at runtime).
I am using visual c++ 6 sp3
Thank you
Oscar
Peter Hendén
June 7th, 1999, 07:40 AM
From memory it goes something like this
// Assuming ADO 1.5 or greater
IADOConnection conn
conn->OpenSchema (adSchemaTables, nullVariant, nullVariant, &pIADORecordset)
I can't remember the exact usage of the second and third arguments, but they are usually set to null variants (or maybe error) for this type of query.
Hope this helps somewhat.
Regards,
Peter
Oscar Rivera
June 22nd, 1999, 03:13 PM
Thank you very much!
It works great!