What version of Access? There is a method that works in all versions, but which
also causes objects hidden by that method to be deleted if the file is compacted
(you obviously don't want that). Newer versions support an alternate method
that really is the equivalent of setting the hidden attribute from the GUI.