Try something along the lines of
Dim cnt As DAO.Container
Dim doc As DAO.Document
Dim dbs As DAO.Database
Set dbs = CurrentDb
For Each cnt In dbs.Containers
Select Case cnt.Name
Case "Tables" ' Tables & Queries
For Each doc In cnt.Documents
Debug.Print "Table/Query - " & doc.Name
Next
Case "Forms"
For Each doc In cnt.Documents
Debug.Print "Form - " & doc.Name
Next
Case "Reports"
For Each doc In cnt.Documents
Debug.Print "Report - " & doc.Name
Next
Case "DataAccessPages"
For Each doc In cnt.Documents
Debug.Print "DataAccessPage - " & doc.Name
Next
Case "Scripts" ' Macros
For Each doc In cnt.Documents
Debug.Print "Macro - " & doc.Name
Next
Case "Modules"
For Each doc In cnt.Documents
Debug.Print "Module - " & doc.Name
Next
End Select
Next
Hope This Helps
Gerald Stanley MCSD
-----Original Message-----
Hi,
I tried to find any information on the subject, but could not.
So, does any of the experts know, how to get a list of
tables, queries, etc using VBA?