Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / December 2007

Tip: Looking for answers? Try searching our database.

navigation pane and ribbon

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
a - 22 Dec 2007 09:33 GMT
thank you
how can i hide navigation pane and ribbon by code in access 2007

=============================================
in previous version i use this code
Application.CommandBars("menu bar").Enabled = False
Application.SetOption "Show Status Bar", False
===============================================
Arvin Meyer [MVP] - 23 Dec 2007 03:54 GMT
Microsoft MVP A.D. Tejpal submitted the following code some time ago to hide
the navigation pane:

Sample code in form's module - Access 2007
(for hiding / un-hiding NavPane window)
'====================================
' Declarations section
' Comma separated list of form names
' already in hidden state (so that these
' do not get un-hidden along with others)
Private HiddenFormsList As String
'-------------------------------------------------------

Private Sub CmdHide_Click()
   ' Hide all open forms & reports so that with
   ' statement (A) focus stays on NavPane even
   ' when no object is on display (e.g. all NavPane
   ' groups are in collapsed state)
   P_HideAllOpenFormsReports

   ' Make NavPane the active window and hide it
   DoCmd.SelectObject acForm, , True               ' (A)
   DoCmd.RunCommand acCmdWindowHide

   ' Unhide all open forms and reports (other than
   ' forms deliberately kept hidden).
   ' Activate this form
   P_UnHideAllOpenFormsReports
End Sub

Signature

Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com

> thank you
> how can i hide navigation pane and ribbon by code in access 2007
[quoted text clipped - 4 lines]
> Application.SetOption "Show Status Bar", False
> ===============================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.