franklinbukoski said:
I would like to hide all forms, queries, reports, and macros.
Is there a way to select all and hide at one time or I am stuck with
selecting each individual object, right clicking, selecting
properties, selecting hide, closing, and repeat...
You have to do it in code, and you'll have to loop through each of the
object collections. Do NOT use the DAO dbHiddenObject attribute.
Instead, use the SetHiddenAttribute method of the Access Application
object. Your code might look something like the following *untested*
air code:
Dim ao As AccessObject
' Hide all forms
For Each ao In CurrentProject.AllForms
Application.SetHiddenAttribute acForm, ao.Name, True
Next ao
' Hide all reports
For Each ao In CurrentProject.AllReports
Application.SetHiddenAttribute acReport, ao.Name, True
Next ao
' Hide all queries
For Each ao In CurrentData.AllQueries
Application.SetHiddenAttribute acQuery, ao.Name, True
Next ao
' Hide all macros
For Each ao In CurrentProject.AllMacros
Application.SetHiddenAttribute acMacro, ao.Name, True
Next ao
Note that queries and tables belong to the CurrentData object, not the
CurrentProject object.