I want to automatically hide all the tables in the database, and automatically hide any new tables that are created, imported thereafter, except one mastertable.
How do i achieve this?
sub hide_them_all
dim tdf as tabledef
for each tdf in currentdb.tabledefs
if tdf.name<>"requiredname" then
tdf.attributes = tdf.attributes+hiddenobject
end if
next tdf
end sub
This code won't hide tables made after you run the code. So if you run a make table query it won't be hidden. I don't think there really is a way that you can have a new table default to hidden. You could put Gemma's procedure in the On_Open event of your switchboard or startup form.