473,487 Members | 2,711 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Is it possible to prevent users accessing database objects via the navigation pane.

44 New Member
Hi,

At the risk of repeating myself in other questions. I have a multi-user login screen which works using the following code:

Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Private Sub Login_Click()
  3. UserName.SetFocus
  4. If UserName = "Staff1" And Password = "Staff1" Then
  5. MsgBox "Welcome"
  6. DoCmd.Close
  7. DoCmd.OpenForm "Staff1"
  8. ElseIf UserName = "Staff2" And Password = "Staff2" Then
  9. MsgBox "Welcome"
  10. DoCmd.Close
  11. DoCmd.OpenForm "Staff2"
  12. ElseIf UserName = "Manager1" And Password = "Manager1" Then
  13. MsgBox "Welcome, please exercise caution when changing query or table conditions", vbInformation, "CDSignatures"
  14. DoCmd.Close
  15. DoCmd.OpenForm "Manager1"
  16. Else
  17. MsgBox "Please re-enter Username and Password"
  18. End If
  19. End Sub
At the moment this form is little more than a gimmick as anyone entering the program can access all objects in the navigation pane with a single click WITHOUT logging in. Is there a way to prevent users accessing objects in the navigation pane without logging in? I also want prevent users accessing items that aren’t on the relevant forms e.g. the manager1 form gives the user access to all objects in the navigation pane whereas the staff1 and staff2 forms only allow access to different forms.
Oct 29 '12 #1
4 6792
zmbd
5,501 Recognized Expert Moderator Expert
It is prefered to put the question in the body of the post too.

A couple of ways to do this...
Some depend on which verision of Access you are using.

However, if you go into the current database options there are some things that you can uncheck and one of them is the show navigation pane. You can also disable use special keys thus a simple F11 wont work to unhide the pane. (and I trap these with an autokeys macro too)

There are few VBA commands that can be used too; however, these are dependent on the version.
Oct 30 '12 #2
anewuser
44 New Member
Thanks for your help. I am using access 2007. How do I go about disabling the special keys?
Oct 30 '12 #3
NeoPa
32,556 Recognized Expert Moderator MVP
Look in the Startup option from the Options menu on older versions. I expect it's easy enough to find in newer versions but I'm still using 2003 predominantly.
Oct 30 '12 #4
zmbd
5,501 Recognized Expert Moderator Expert
Yes, NeoPa is correct...
In V2010 you goto the file ribbon\options\current database: All of these are available there.
I'm sure it's something along the same lines in 2007... we skipped that version.
Oct 30 '12 #5

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

Similar topics

10
3323
by: Bryan J Gudorf | last post by:
PDO, an open source python module for interfacing with RDBMS (SQL databases), has now reached 1.2.0! PDO provides an object oriented API, similar to that of ADO or JDBC, to python developers. PDO...
3
3346
by: M A Srinivas | last post by:
Hello, I would like to know is it possible to disable drop database for sa or sysadmin. If saor sysadmin needs to drop the database , he/she may have to change status in one of the system...
4
1577
by: JP SIngh | last post by:
Hi All We have an ASP application which links to various word and excel documents stored in a folder called attachments. The documents are extermely confidential in nature and we would like...
1
2804
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...
5
3009
meLady
by: meLady | last post by:
Hello, I have two database applications and they are: - the (A) application is for administration use. - the (B) application is for normal users use. the idea is that: I made the (A)...
0
2103
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
7593
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...
1
2985
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
2963
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
1249
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
0
7106
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
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
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
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
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,...
1
4874
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...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.