Solved Accdb: Ribbon and NavigationPane, Unhide/hide (1 Viewer)

vhung

Member
Local time
Yesterday, 18:43
Joined
Jul 8, 2020
Messages
235
>when you need to open you ribbon and navigation pane
>try the codes below

DoCmd.SelectObject acTable, , True
If Not (objPane Is Nothing) Then
objPane.IsCollapsed = False
End If
DoCmd.ShowToolbar "Ribbon", acToolbarYes 'Yes or 'No
MsgBox "Ribbon, acToolbarYes; NavigationPane OpenYes"

>no need to restart this time auto response is visible
 

Attachments

  • rpview.png
    rpview.png
    268.9 KB · Views: 106
Last edited:

vhung

Member
Local time
Yesterday, 18:43
Joined
Jul 8, 2020
Messages
235
>use this sample codes for hide command

DoCmd.ShowToolbar "Ribbon", acToolbarNo 'Yes or 'No
MsgBox "Ribbon, acToolbarNo; NavigationPane OpenNo"

CommandBarControl.Visible = False
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide

>no need to restart this time auto response is visible
 

Attachments

  • rpviewx.png
    rpviewx.png
    207.3 KB · Views: 110
Last edited:

Users who are viewing this thread

Top Bottom