Possibly overkill, or even not what you're looking for, but just in case it is. Following is courtesy of Duane Hookum.
Copy/paste it into a new module, open an immediate window and run the code. You can copy/paste the results whereever you need them. Note that it handles Access Projects, too.
Option Compare Database
Option Explicit
Public Sub ListObjects()
Dim obj As AccessObject, dbs As Object, dbType As String
dbType = Right(Application.CurrentProject.NAME, 3)
If dbType = "mdb" Or dbType = "adp" Then
Set dbs = Application.CurrentData
Debug.Print "Tables:"
For Each obj In dbs.AllTables
Debug.Print " " & obj.NAME
Next obj
Set dbs = Application.CurrentProject
Debug.Print "Forms:"
For Each obj In dbs.AllForms
Debug.Print " " & obj.NAME
Next obj
Set dbs = Application.CurrentProject
Debug.Print "Reports:"
For Each obj In dbs.AllReports
Debug.Print " " & obj.NAME
Next obj
Set dbs = Application.CurrentProject
Debug.Print "Macros:"
For Each obj In dbs.AllMacros
Debug.Print " " & obj.NAME
Next obj
Set dbs = Application.CurrentProject
Debug.Print "Modules:"
For Each obj In dbs.AllModules
Debug.Print " " & obj.NAME
Next obj
End If
If dbType = "mdb" Then
Set dbs = Application.CurrentData
Debug.Print "Queries:"
For Each obj In dbs.AllQueries
Debug.Print " " & obj.NAME
Next obj
End If
If dbType = "adp" Then
Set dbs = Application.CurrentData
Debug.Print "Stored Procedures:"
For Each obj In dbs.AllStoredProcedures
Debug.Print " " & obj.NAME
Next obj
Set dbs = Application.CurrentData
Debug.Print "Views:"
For Each obj In dbs.AllViews
Debug.Print " " & obj.NAME
Next obj
End If
Set dbs = Nothing
End Sub
HTH,
Bob
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)