hfsitumo2001
Member
- Local time
- Today, 06:15
- Joined
- Jan 17, 2021
- Messages
- 386
Thank you DBGuy, I will study it.
To hide the Ribbon.Thank you DBGuy, I will study it.
DoCmd.ShowToolbar "Ribbon", acToolbarNo
DoCmd.ShowToolbar "Ribbon", acToolbarYes
DBGuy, How can we show again Navigation Pane. Hiding is ok, but when I use the vhung's code suggestion, it won't workTo hide the Ribbon.
Code:DoCmd.ShowToolbar "Ribbon", acToolbarNo
To show the Ribbon.
Code:DoCmd.ShowToolbar "Ribbon", acToolbarYes
To show NavPane again, try:DBGuy, How can we show again Navigation Pane. Hiding is ok, but when I use the vhung's code suggestion, it won't work
DoCmd.SelectObject acTable, "TableName", True
you rumble it;vhung... I tried this for navigation to show, but it did not work. Something wrong I made?
Application.SetOption "Show Status Bar", True
DoCmd.NavigateTo "acnavigationcategoryobjecttype"
DoCmd.RunCommand acCmdWindowYes
DBGuy, How can we show again Navigation Pane. Hiding is ok, but when I use the vhung's code suggestion, it won't work
vhung, I already tried to make your code and I clicked the button show navigation pane. It did not work. I do not mean the navigation of the record at the bottom of the form... On loginform please use Batman_Admin and password "b"you rumble it;
use this syntax for hide of navigation pane not for show
Application.SetOption "Show Status Bar", False
DoCmd.NavigateTo "acnavigationcategoryobjecttype"
DoCmd.RunCommand acCmdWindowHide
then on open
forNavPane…
Application.SetOption "Show Status Bar", True
vhung, I use this on click even of the show navigation pane button, but it hanged as follows:use this code to open navigation pane
DoCmd.SelectObject acTable, , True
If Not (objPane Is Nothing) Then
objPane.IsCollapsed = False
End If
codes to close...
DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide
Application.SetOption "Show Status Bar", False
Sub DisplayHideNavPane(Optional Visible As Boolean = True)
DoCmd.SelectObject acForm, , True
If Visible = False Then DoCmd.RunCommand acCmdWindowHide
End Sub
FileCopy "Source Full Name", "Destination Full Name"
Abo, in which even should we put this code:1- For Hide and Show Navigation Use This Code
2- This code is used to copy the database, but you need a certain mechanism to take the backup copy of the database automatically at specific intervalsCode:Sub DisplayHideNavPane(Optional Visible As Boolean = True) DoCmd.SelectObject acForm, , True If Visible = False Then DoCmd.RunCommand acCmdWindowHide End Sub
Code:FileCopy "Source Full Name", "Destination Full Name"
put this code in moduleAbo, in which even should we put this code:
'for hide
DisplayHideNavPane false
'for show
DisplayHideNavPane true
put this code in moduleput this code in module
and call it from anywhere like this
Code:'for hide DisplayHideNavPane false 'for show DisplayHideNavPane true