Object List (1 Viewer)

lessthanme5

Registered User.
Local time
Today, 23:51
Joined
Mar 7, 2006
Messages
43
Hi,

I have been trying to list all of the objects in my database in a single form.

I have come across this piece of code which lists the reports, can anyone surgest how I can change it to wiew tables?

Code:
SELECT Name FROM msysobjects WHERE (((msysobjects.Type)=-32764));
 

selenau837

Can still see y'all......
Local time
Today, 18:51
Joined
Aug 26, 2005
Messages
2,211
Here is one I found in my Access Bible.

Code:
Public Sub ListObjects()
Dim aob as AccessObject

with CurrentData
   Debug.Print "Tables"
   For Each aob in .AllTables
       Debug.Print " " & aob.name
next aob

end with


Not sure if that is what you need, but there is one way.
 

Users who are viewing this thread

Top Bottom