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

Table names of Access from DAO 1

Status
Not open for further replies.

fordtran

Programmer
Jun 15, 2005
101
0
0
ZA
There are many threads here for reading table names in an access database, but all the solutions seems to be for ADO. Anybody that can help me with extracting that in DAO.

Thanks


fordtran
 
Code:
Public Sub PrintTableNames()
Dim t As DAO.TableDef
For Each t In dbCurrent.TableDefs
    debug.print t.Name
Next t
Set t = Nothing
End Sub

Where dbCurrent is your database.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top