Code for hiding tables, queries, forms, reports and modules in a database. I know you can hide them by right-clicking properties and checking the hidden attributes.
But is there an easy way to code and hide all the database objects.
Hey! I've been searching for a way to do this and stumbled accross this post. I tried the loop for the forms, reports and macros and it worked like a charm. But I can't get it to work for the tables or the queries. Any ideas why not?
Here's what I have:
Dim tbl As Object
For Each tbl In CurrentProject.AllTables
Application.SetHiddenAttribute acTable, tbl.Name, True
Next tbl
and
Dim qry As Object
For Each qry In CurrentProject.AllQueries
Application.SetHiddenAttribute acQuery, qry.Name, True
Next qry
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.