Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hide/Unhide Database Window

1 view
Skip to first unread message

Peter K

unread,
Nov 21, 2003, 3:02:51 AM11/21/03
to
How do I Hide/Unhide the Main Database Window in VB?


Allen Browne

unread,
Nov 21, 2003, 3:18:16 AM11/21/03
to
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" <per...@kaasen.plus.com> wrote in message
news:yEjvb.11153$lm1....@wards.force9.net...

Terry Kreft

unread,
Nov 28, 2003, 4:36:36 AM11/28/03
to
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" <per...@kaasen.plus.com> wrote in message
news:yEjvb.11153$lm1....@wards.force9.net...

0 new messages