Hide Database window via code

G

Guest

Hi,

I am a new user to Access 2003. I was wondering if it possible to hide the
database window when one opens up Access. I have 3 forms in my Access
database. 1 is a Main swithboard that gives direction to the other 2 forms.
I know there is a way of doing this by the unchecking the box in the Tools,
but I was trying to see if there is a way to do it by code. What I mean is
when the Application opens up, I would like it to run the code that Hides the
database window. Please let me know if this can be done and if so what
"Event" would I use? Thanks in advance.
 
D

david epsom dot com dot au

To hide the database window at startup, go to Tools, StartUp,
and clear the 'display database window' check mark.

To hide the database window at some other time, select
an object in the window, then hide the selected window:

Docmd.SelectObject acTable, , True
Docmd.RunCommand acCmdWindowHide

(david)
 

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