database window won't stay hidden

J

Jim

I have a command button on a form in an Access 2002 front
end which allows administrative users to toggle
the visibility of the database window by changing startup
properties which take effect the next time the
application is opened. I have used two methods to
accomplish this, by using runcommand (DoCmd.RunCommand
acCmdWindowHide) as well as by calling a custom
changeproperty function
(ChangeProperty "StartupShowDBWindow",
dbBoolean, False). Both of these procedures work fine
initially; the db window is indeed not visible when
the application is reopened. When a user minimizes the
application and then reactivates it by clicking on
the application icon in the taskbar, however, the db
window is displayed in all it's glory.

Has anyone else experienced this problem and, if so, is
there a work-around?
 
J

Jim

I feel so...duh...

Thanks, Van. That seems to work fine (and also
demonstrates why one should look for the easy answers
first), but it's sure not very secure. Any idea how to do
it from code?

Jim
 
V

Van T. Dinh

Check Access VB Help on the SetOption Method. If I remember correctly, the
name of this option is "WindowsInTaskbar".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top