By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,486 Members | 2,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,486 IT Pros & Developers. It's quick & easy.

Authorizing in MS access

anukagni
P: 53
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
Share this Question
Share on Google+
2 Replies


ADezii
Expert 5K+
P: 8,597
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
Expert Mod 15k+
P: 31,186
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

Post your reply

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