UnHide All the Database Objects

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Does anyone know code to unhide all the hidden objects in the database?

1. I am going to run the Analyser/Documenter for all the objects in my
database.
2. However, Only the objects that are not hidden are available for selection
3. My Database has over 50 hidden forms and even more hidden queries
4. Its a big pain to go to each objects properties (individually) and
uncheck the hidden attribute

I use the following code to go through all the table objects and rename
them. Is there a similar code that I can use to go through each object in
the database and make the hidden attribute false?
---------------------
Public Function RenameTablesdbo()


Dim db As DAO.Database
Dim tbl As DAO.TableDef

Set db = CurrentDb()
For Each tbl In db.TableDefs
If Left$(tbl.Name, 4) = "dbo_" Then
tbl.Name = Mid$(tbl.Name, 5)
End If
Next tbl

End Function
----------------------


.



Relevant Pages

  • Re: Re Linking Tables
    ... > I have A Database that has many linked tables and I have ... > Sub LinkTables(filename As String) ... > Dim tbl As TableDef ... > db.TableDefs.Delete "Billing Variables" ...
    (microsoft.public.access.modulesdaovba)
  • Re: UnHide All the Database Objects
    ... > Sub Unhide_Tables ... >> Does anyone know code to unhide all the hidden objects in the database? ... >> Dim tbl As DAO.TableDef ...
    (microsoft.public.access.modulesdaovba)
  • Re: Reporting on nulls within a Database
    ... >>The master table in my Database is called tblApplication ... >dim tbl as DAO.tabledef ... >Dim fld as DAO.field ...
    (microsoft.public.access.modulesdaovba)
  • Re: Reporting on nulls within a Database
    ... >>The master table in my Database is called tblApplication ... >dim tbl as DAO.tabledef ... >Dim fld as DAO.field ...
    (microsoft.public.access.modulesdaovba)
  • Re: Reporting on nulls within a Database
    ... >>The master table in my Database is called tblApplication ... >dim tbl as DAO.tabledef ... >Dim fld as DAO.field ...
    (microsoft.public.access.modulesdaovba)