make an access object unvisible with VBA

  • Thread starter Thread starter TNL
  • Start date Start date
Hi,
I don't think a control on a Form, but an object such as a
query, a table on the database window.
on the dialog property we can make them unvisible, but
with VBA?

TNL
 
To hide a table definition in VBA you can use:
CurrentDB.TableDefs("TableName").Properties("Attributes")
=dbHiddenObject

All such tables will be *deleted* on the next compact!

This is possibly not what he wants.

dbHiddenObject is an undocumented system property.

It is *not* for what its name implies.

TC
 
TC said:
dbHiddenObject is an undocumented system property.

It is *not* for what its name implies.

It is documented... but I agree it's really stupid. There was a similar
thread hereabouts a week or two ago, where we decided that

Application.SetHiddenAttribute

was the way to go.

All the best


Tim F
 
Back
Top