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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you display Access tables and fields?

Status
Not open for further replies.

SirPaladin

Programmer
Jul 9, 1999
32
0
0
US
I realize this might sound like a really simple question, but I've had little luck trying to solve it so far. I'm trying to create a Global Update utility for an Access database, and I want the user to be able to dynamically select their desired Access table, and then from that table, their desired field to update to whatever value they entered. How can I get the list of tables from a specified Access database, and then in turn, get a list of the fields in that table?
 
If you are using DAO use can use the TableDefs and Fields collections to list all the tables and fields.

If using ADO, then you can use the OpenSchema method of the Connection object to display the same information.

HTH John Whyte
jwhyte@skipton.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top