APD Toronto
asked on
Printing a List of Acess Forms
Hi Experts,
Is there any quick way that I can print out a list of Access forms that are within a .accdb file?
I don't need anything fancy just a quick list.
Thank you,
Is there any quick way that I can print out a list of Access forms that are within a .accdb file?
I don't need anything fancy just a quick list.
Thank you,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can use a query which gives you some flexibility on how you use the output.
SELECT MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE (((MSysObjects.Type)=-3276 8))
ORDER BY MSysObjects.Name;
If you can't see the MSys tables, you can show them by going to Navigation Options and checking the Show System Objects box.
Each object type has a unique type code. The MSys tables are not documented but if you have a database with a variety of objects, you should be able to see most of the available types. Here's a list from my explorations:
Type TypeDesc
-32768 Form
-32766 Macro
-32764 Reports
-32761 Module
-32758 Users
-32757 Database Document
-32756 Data Access Pages
1 Table - Local Access Tables
2 Access Object - Database
3 Access Object - Containers
4 Table - Linked ODBC Tables
5 Queries
6 Table - Linked Access Tables
8 Relationships
9 Constraints
SELECT MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE (((MSysObjects.Type)=-3276
ORDER BY MSysObjects.Name;
If you can't see the MSys tables, you can show them by going to Navigation Options and checking the Show System Objects box.
Each object type has a unique type code. The MSys tables are not documented but if you have a database with a variety of objects, you should be able to see most of the available types. Here's a list from my explorations:
Type TypeDesc
-32768 Form
-32766 Macro
-32764 Reports
-32761 Module
-32758 Users
-32757 Database Document
-32756 Data Access Pages
1 Table - Local Access Tables
2 Access Object - Database
3 Access Object - Containers
4 Table - Linked ODBC Tables
5 Queries
6 Table - Linked Access Tables
8 Relationships
9 Constraints
Sub ListForms()
Dim db As database
Dim d As Document
Dim C As Container
Set db = CurrentDb()
Set C = db.Containers("Forms")
For Each d In C.Documents
Debug.Print d.Name
Next d
End Sub