How to List the Fields in a Table & the Tables in a Database (109219)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q109219 SUMMARY
Below are two examples showing how to list all the fields in a table and
all the tables in a database. - Example One shows how to list all the fields in a database table by
using the Fields collection of a table's TableDef object. It also shows
how to list the names of all tables in a database.
- Example Two shows how to list all the fields in a database table using
the ListFields method. The ListFields method creates a Snapshot with one
record for each field in a specified recordset.
The technique used in Example One is more efficient than Example Two.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB109219 |
---|
|