HOW TO: Set "Start up property"

K

Kevin McCartney

HI TWIMC,

I'd like to be able to set the database property "Show Hidden Objects" to
False via code. It should be something like
CurrentDb.Properties("StartupShowHiddenObjects") = False

Yes I know if its not there I'll need to add it first, but the question is,
is "StartupShowHiddenObjects" the correct property name.

TIA
KM
 
D

Dennis

The property is Show Hidden Objects

This works
Application.SetOption "Show Hidden Objects", False
 
G

George Nicholson

"Show Hidden Objects" is the string argument

There is what appears to be a full list of the proper arguments in VB Help
("Set Options in Visual Basic") which you can get to via the entries for
either the GetOption or SetOption methods (at least you can in Access
2002/XP).

HTH,
 
Top