Solved

Password and Navigation pane question

Posted on 2016-09-30
4
16 Views
Last Modified: 2016-11-09
Hi,
Navigation Pane- How do I hide the navigation pane from users in Access 2013? When an user opens the DB it goes to a menu. They see the navigation pane  containing the tables, reports etc. All they should see is the Menu only. The buttons on the menu will take them where they need to input data.

Password- Can you password protect a button inside a DB? On our main menu, I have a button that opens a second menu where Admins can edit a few tables. I would like to password protect it so when you click it open, you must enter a password to open the menu. The menu is a form. I do understand that I can password protect the entire DB, which I did and is working well. Now I am asked to Password protect  the button for a second menu.

Any ideas?
EarlImage displays my main menu with the button I would like to password protect. It also shows what it looks like when you first open the DB. You can see the navigation pane opened on the left. I would l
0
Comment
Question by:Earl Wolf
4 Comments
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
Comment Utility
You can hide the Nav Pane in the Options:

Options >> Current Database >> Navigation section - uncheck the "Display Navigation Pane" box.

Note that users can still show the Navigation Pane by pressing F11. If you don't want that to happen, you'll have to catch that key and dispose of it.

You can use the same methods to password protect a Button as you did for the Menu. Basically, in the Click event of that button:

Dim pass As String
pass = InputBox("Enter Password:", "Password")

If pass = "your password here" Then
  '/ open your form
End If
0
 
LVL 18

Accepted Solution

by:
crystal (strive4peace) - Microsoft MVP, Access earned 250 total points
Comment Utility
to hide the Navigation Pane, you can turn the Navigation pane off in the defaults for the current database. If YOU want to see it, press the F11 key.
Access Default Display Navigation PaneFor prompting for a password, you can put code on the OPEN event of a form and CANCEL the open event if the correct password was not entered.  The simple way is to use an InputBox, but what is typed is visible.  Alternately, you can create a form to popup in the OPEN event with a textbox and set the InputMask to "Password" so it will display as asterisks.
0
 

Author Comment

by:Earl Wolf
Comment Utility
Scott, Crystal
Thanks for your help. Your suggestions worked
Earl
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now