Database Window: How to hide via VB ?

J

Jim B.

Despite studying the Access 2000 object model, I have been
able to hide / unhide the Database Window via VB 6.

Thanks, Jim
 
L

Lucky

In your VB window, open Office Assistant and type in
Startup Properties Example to view example. Add your own
code for hiding/showing db window, etc.

I hope this helps.

Lucky
 
V

Van T. Dinh

If you meant Access VBA 6.0 then:

* To hide

DoCmd.SelectObject acTable, , -1
Docmd.RunCommand acCmdWindowHide

* To show

DoCmd.SelectObject acTable, , -1

Change acTable to another Container if you prefer.

(Note: tested in AXP - VBA 6.3, NOT A2K - VBA 6.0)

HTH
Van T. Dinh
MVP (Access)
 

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