Connecting Tech Pros Worldwide Help | Site Map

Hide/Unhide Database Window

Peter K
Guest
 
Posts: n/a
#1: Nov 12 '05
How do I Hide/Unhide the Main Database Window in VB?


Allen Browne
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Hide/Unhide Database Window


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" <perove@kaasen.plus.com> wrote in message
news:yEjvb.11153$lm1.80361@wards.force9.net...[color=blue]
> How do I Hide/Unhide the Main Database Window in VB?
>
>[/color]


Terry Kreft
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Hide/Unhide Database Window


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" <perove@kaasen.plus.com> wrote in message
news:yEjvb.11153$lm1.80361@wards.force9.net...[color=blue]
> How do I Hide/Unhide the Main Database Window in VB?
>
>[/color]


Closed Thread