473,289 Members | 2,141 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,289 software developers and data experts.

Authorizing in MS access

anukagni
Hi all,

I want to use the security levels in ms access..

Iam having 5 main user who are using the database and doing the entries and updation and viewing report ect.

Expand|Select|Wrap|Line Numbers
  1. i.e. they are all five seperate division in my office
Now they want to get more privacy to protect thier data's from other user who can view the data..

I build the only one table to entry data ...but i use 5 seperate report to view their report ... the issue is these report can view by clicking an command button when the user entered into database they can view any one data by clicking the button... but i want to set an protection to restrict them by their longin ID if they entered the database they should have the accessability to their datas not the others..

Please any body help me if your not able to understand please revert me..

thanks in advance..
anukanuk
Feb 24 '07 #1
2 1530
ADezii
8,834 Expert 8TB
Hi all,

I want to use the security levels in ms access..

Iam having 5 main user who are using the database and doing the entries and updation and viewing report ect.

Expand|Select|Wrap|Line Numbers
  1. i.e. they are all five seperate division in my office
Now they want to get more privacy to protect thier data's from other user who can view the data..

I build the only one table to entry data ...but i use 5 seperate report to view their report ... the issue is these report can view by clicking an command button when the user entered into database they can view any one data by clicking the button... but i want to set an protection to restrict them by their longin ID if they entered the database they should have the accessability to their datas not the others..

Please any body help me if your not able to understand please revert me..

thanks in advance..
anukanuk
If your only concern is that just these 5 Users should have the ability to View Reports via clicking on Command Button(s), you do not necessarily have to set up Security Access Levels based on Log-ins. You could simply Enable/Disable these Buttons based on the current Username. Keep in mind though, that if you use this approach, you must prevent access to the underlying code in some manner. I really do not know your present situation and the sensitivity of the data.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Open(Cancel As Integer)
  2. Select Case CurrentUser()
  3.   Case "Admin", "User2", "User3", "User4", "User5"
  4.     Me![cmdViewData].Enabled = True
  5.   Case Else
  6.     Me![cmdViewData].Enabled = False
  7. End Select
  8. End Sub
Feb 24 '07 #2
NeoPa
32,554 Expert Mod 16PB
If, as you say, you have all the data stored in one table (The correct approach :)), then Access Security cannot help you anyway.
ADezii's suggestion is far more flexible and is along the lines I would suggest.
Feb 26 '07 #3

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

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
2
by: Kevin Hoskins | last post by:
Is there anyway to force authentication of the Anonymous user? Here is the situation: I have an ASP.NET page which calls an assembly which requires a certain level of permissions. The page is...
1
by: Erick | last post by:
I'm trying to develop a single security model that has to work for authenticated users and for users coming in from the outside world. I have looked at the Web Site Administration tool for...
1
by: Erick | last post by:
I'm trying to develop a single security model that has to work for authenticated users and for users coming in from the outside world. I have looked at the Web Site Administration tool for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.