Database Window: How to hide via VB ?

  • Thread starter Thread starter Jim B.
  • Start date Start date
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
 
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
 
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)
 
Back
Top