473,403 Members | 2,284 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

MS Access Navigation Pane Hide/Show VB code

RockKandee
89 64KB
I am using Access 2013 in Windows 8.

The security features are gone (grumble, grumble). While I understand that those feature were not really security, they did have value. My goal is simply to avoid accidental changes not malicious ones. I want the user to be aware that they are in "can mess things up" mode.

I would like to have a command button on a form that will un-hide the navigation pane and menus and a button to re-hide them. Is this possible?

I am assuming that the "Office" button that is discussed is the same as my file tab.
"File" >>> "Options" >>> "Current Database"
Is there VB code that can be used to control changes in the Access Options current database?

It would be much easier to have a button to allow full use of the navigation pane than to make a form to open each object in design.

Thanks for your time.
Dec 15 '13 #1

✓ answered by zmbd

You can hide the pane:
I borrowed this code way back in the ages and it still works.

Make a form with two simple buttons (I used the default here):
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.  
  3. DoCmd.SelectObject acTable, , True 
  4. DoCmd.RunCommand acCmdWindowHide
  5.  
  6. End Sub
  7.  
  8. ‘unhide
  9.  
  10. Private Sub Command2_Click()
  11.  
  12. DoCmd.SelectObject acTable, , True 
  13.  
  14. End Sub
This worked as of ACC2010

If you need to hide the ribbon that's a slightly different barrel of monkies:
Expand|Select|Wrap|Line Numbers
  1. If Not CommandBars.GetPressedMso("MinimizeRibbon") 
  2. Then
  3. CommandBars.ExecuteMso "MinimizeRibbon" '<this will toggle state, hence the check first.
  4. End If 
THen there's
Expand|Select|Wrap|Line Numbers
  1. DoCmd.ShowToolbar "Ribbon", acToolbarYes
Expand|Select|Wrap|Line Numbers
  1. DoCmd.ShowToolbar "Ribbon", acToolbarNo
And then you should search on "MS ACCESS 2010 custom ribbons" using your favorite engine. It's a dozy!

Oh, BTW, I can bypass everyone of these actions quite easily; thus, the more savy users will figure it out.

2 35544
zmbd
5,501 Expert Mod 4TB
You can hide the pane:
I borrowed this code way back in the ages and it still works.

Make a form with two simple buttons (I used the default here):
Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.  
  3. DoCmd.SelectObject acTable, , True 
  4. DoCmd.RunCommand acCmdWindowHide
  5.  
  6. End Sub
  7.  
  8. ‘unhide
  9.  
  10. Private Sub Command2_Click()
  11.  
  12. DoCmd.SelectObject acTable, , True 
  13.  
  14. End Sub
This worked as of ACC2010

If you need to hide the ribbon that's a slightly different barrel of monkies:
Expand|Select|Wrap|Line Numbers
  1. If Not CommandBars.GetPressedMso("MinimizeRibbon") 
  2. Then
  3. CommandBars.ExecuteMso "MinimizeRibbon" '<this will toggle state, hence the check first.
  4. End If 
THen there's
Expand|Select|Wrap|Line Numbers
  1. DoCmd.ShowToolbar "Ribbon", acToolbarYes
Expand|Select|Wrap|Line Numbers
  1. DoCmd.ShowToolbar "Ribbon", acToolbarNo
And then you should search on "MS ACCESS 2010 custom ribbons" using your favorite engine. It's a dozy!

Oh, BTW, I can bypass everyone of these actions quite easily; thus, the more savy users will figure it out.
Dec 15 '13 #2
RockKandee
89 64KB
You ROCK!!!

Thank you - *kisses*

Ya - I know it doesn't take much to bypass. Super easy, even I figured that one out earlier today without asking - LOL.
Dec 16 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: SteamyFrog | last post by:
I'm looking to place an icon for my app on the Navigation Pane (lower right of task bar), yet haven't been able to find any information on how to do this. The app basically is a running file...
0
by: Wayne | last post by:
I've been looking and maybe I've missed something but is there a way to undock the navigation pane or at least not have it "always on top" in design view? I realize it can be minimized, but having...
5
by: Patrick | last post by:
I have set the Navigation Pane so that it is not displayed on startup of my application. However, if I programmatically link to an external Access table, the navigation pane automatically...
15
by: worked | last post by:
I have a script that hides / shows form elements, and wrapped in a tab script (tab navigation). When the code is duplicated (per tab content), the hide / show function works for the first tab but...
11
by: dmorand | last post by:
I'm having some trouble with my javascript which is supposed to hide/show a div element. I have to click on the link twice before it'll hide. I can't seem to figure out why the first click does...
1
by: chupachup32 | last post by:
I'm a student trying to teach myself to use access. I somehow managed to minimize my navigation pane and now I can't figure out how to reopen it. The Access handbook says that, even when minimized,...
2
by: Bob | last post by:
Hi, In runtime environement my access 2007 application dont show the Navigation Pane, anybody have this problem ? Thank's for reply Bob
0
by: Walter Raymond | last post by:
Our backend Access 2007 database will be locked but we don't want our users to have access to the Navigation Pane, accidental or otherwise. W
2
by: Mihail | last post by:
Hy ! I use following code to print out a report WITHOUT open it Private Sub cmdPrintReportRAM_Click() DoCmd.SelectObject acReport, "ReportName", True DoCmd.PrintOut acPrintAll, , , , , 1...
4
by: anewuser | last post by:
Hi, At the risk of repeating myself in other questions. I have a multi-user login screen which works using the following code: Option Compare Database Private Sub Login_Click()...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.