Jim Pockmire said:
What code can I use to change hide an existing table (dbhidden
attribute), and what attribute reverses dbHidden to make the table
visible again?
In Access 2000 (I believe) or later, do it like this:
' Hide the table
Application.SetHiddenAttribute acTable, "YourTableName", True
' Show the table
Application.SetHiddenAttribute acTable, "YourTableName", False
There was a bug in Access 97 -- maybe fixed, maybe not -- that would
cause a a table to be deleted the next time you compacted the database,
if you hid it by setting the dbHidden attribute of the DAO TableDef
object.