Connecting Tech Pros Worldwide Help | Site Map

Hide/Unhide Database Window

  #1  
Old November 12th, 2005, 04:44 PM
Peter K
Guest
 
Posts: n/a
How do I Hide/Unhide the Main Database Window in VB?


  #2  
Old November 12th, 2005, 04:44 PM
Allen Browne
Guest
 
Posts: n/a

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]


  #3  
Old November 12th, 2005, 05:10 PM
Terry Kreft
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Noob:VB help calling a control to open the database window kennyrogersjr answers 5 May 4th, 2007 03:45 PM
Is there a way to disable the F-11 key to prevent runtime installations from opening the database window? MLH answers 16 December 24th, 2005 07:55 PM
How to unhide a specific form or database window in A97? MLH answers 5 November 13th, 2005 02:31 PM
Unhide Database Window caimito answers 4 November 13th, 2005 05:26 AM