Hello,
I'm trying to hide/unhide database window, I've got some idea from the web.
====================
Private Sub cmdHide_Click()
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
End Sub
====================
Private Sub cmdShow_Click()
DoCmd.SelectObject acTable, , True
End Sub
====================
It works but it needs two buttons, one for hide and one for unhide.
I guess there must be some way to combine them into one button with if statement or something like that.
But how do I know if DB window has been hidden or not? So that I can put it into if statement as condition? Or are there any other ways to do that?
Thanks very much.