Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to get the table list? 1

Status
Not open for further replies.

lordtektips

Programmer
May 20, 2001
9
AU
help!
I'm using ADO to open a database(Access).How can I get
the table list from the database. I need the table list to
fit into a treeview control.
 
Hi lordtektips,

if you're using ADOX enumerate the tables like:
Dim cat As ADOX.Catalog
Dim tbl As ADOX.Table

Set cat = New ADOX.Catalog
cat.ActiveConnection = YourConnectionString

For Each tbl In cat.Tables
debug.print tbl.Name
Next

Success, Herman :-Q
 
ADOX is an extension to the ADO objects and programming model. Under Project/Reference search for "Microsoft ADO Ext.[version] for DDL and Security"

See MSDN for more info


 
Hi,
I wnat to list all tables which are realted to other tables
how do i do this using ADOX
Thanks
Nivedita
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top