S
Sam Kuo
Q1. I use the following codes to hide both Menu Bar (File, Edit, View, ect)
and Form View toolbar, when the startup form opens:
Private Sub Form_Load()
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
CommandBars("Form View").Visible = False
End Sub
This works fine so far. But then I wish to have both toolbars reappear when
the next form opens (and hide again when back to 1st form) so I use the
following codes in 2nd form:
DoCmd.ShowToolbar "Menu Bar", acToolbarYes
CommandBars("Form View").Visible = True
But this doesn't seem to work. What have I done wrong? Many thanks
and Form View toolbar, when the startup form opens:
Private Sub Form_Load()
DoCmd.ShowToolbar "Menu Bar", acToolbarNo
CommandBars("Form View").Visible = False
End Sub
This works fine so far. But then I wish to have both toolbars reappear when
the next form opens (and hide again when back to 1st form) so I use the
following codes in 2nd form:
DoCmd.ShowToolbar "Menu Bar", acToolbarYes
CommandBars("Form View").Visible = True
But this doesn't seem to work. What have I done wrong? Many thanks