This will tell you how, but also has a warning you will want to read first.
http://www.mvps.org/access/bugs/bugs0036.htm
--
Wayne Morgan
Microsoft Access MVP
"Randy K." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I am tyring to create functions to hide/unhide all the
> tables/forms/reports/modules (everything in the database window) just in
> case a user gets the database window open, they won't be able to 'see'
> anything (I already turn off the ability to see hidden objects), but can't
> seem to find the correct syntax to set the object to hidden.