acCmdWindowHide

A

AM

I have the following in the Form_Open event

DoCmd.RunCommand acCmdWindowHide

It is supposed to just hide the database window but for
some reason on this one form after I go into design view
and then try to display the form again it hides the form.
If I comment out the form is not hidden.
 
C

Chris Nebinger

Just that line only hides the ACTIVE window. So yo uneed
to activate the dbwindow, then close it.


Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide


Chris Nebinger
 

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