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.SelectObj ect acTable, "", True
End Sub
Terry
"Peter K" <pe****@kaasen. plus.com> wrote in message
news:yE******** ***********@war ds.force9.net.. .
How do I Hide/Unhide the Main Database Window in VB?