469,934 Members | 1,998 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,934 developers. It's quick & easy.

Hide/Unhide Database Window

How do I Hide/Unhide the Main Database Window in VB?
Nov 12 '05 #1
2 18037
To hide the database window on startup:
Tools | Startup | Database window.

To show it again, use SelectObject to select anything, and use True for the
InDatabaseWindow argument.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Peter K" <pe****@kaasen.plus.com> wrote in message
news:yE*******************@wards.force9.net...
How do I Hide/Unhide the Main Database Window in VB?

Nov 12 '05 #2
Peter,
This code has been posted hundreds of time.

Change the acTable to one of the other intrinsic constants if you want to
view a different tab on showing the window.

Private Sub HideDB_Click()
With DoCmd
.SelectObject acTable, "", True
.RunCommand acCmdWindowHide
End With
End Sub

Private Sub ShowDB_Click()
DoCmd.SelectObject acTable, "", True
End Sub
Terry
"Peter K" <pe****@kaasen.plus.com> wrote in message
news:yE*******************@wards.force9.net...
How do I Hide/Unhide the Main Database Window in VB?

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by caimito | last post: by
2 posts views Thread by | last post: by
3 posts views Thread by =?Utf-8?B?aWxy?= | last post: by
6 posts views Thread by Ralph | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.