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 gkittelson 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 table names from access

Status
Not open for further replies.

dcmagain

IS-IT--Management
Oct 29, 2003
7
US
i am having issues with my home pc right now and i cant run iis
so if i want to work from home, i need to build some tools on my server

one tool i want to build is a page that lists all the tables in my current database
(i dont have access installed on this machine either)
all the examples i have seen use dao
i am used to ado, but not dao

i will give these methods a try, but wanted to post this up here in case someone knows exactly how to do this

thanks

 
there's links in this thread ( thread333-825356 ) on how to do this with sql, there should be reference information for Access as well


[thumbsup2]DreX
aKa - Robert
 
may also want to google up "ASP MS Access Schema"

[thumbsup2]DreX
aKa - Robert
 
i did it like this:

set my_con = GetNLSCon()
set rs_tables = my_con.openSchema(20)

GetNLSCon is a function that returns connection object to the database i am using

20 is a value for the constant adSchemaTables

then i loop through to get the info
table_name gives you the table name
table_type will return SYSTEM_TABLE, TABLE(ones you made), or VIEW(queries)

 
glad you got it patched up, hope the info helped


[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top