473,434 Members | 1,820 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,434 software developers and data experts.

Permissions Question

I am running Access 03, and have two tables, I would like three columns in one table to be edited by some employees, and full permission of editing fields by others. Can this be accomplished through the security settings? Ideally two separate passwords would be used, one for admin, and one for regular employees, similar to a Windows login, then based on the password given, have three columns be capable of updates, or all columns be capable of updates. Thanks for any help.

Paul
May 5 '09 #1
5 1287
Denburt
1,356 Expert 1GB
You can do this by enabling or disabling the fields on a form according to the user in question. You would need to hide the database window and it does depend on how secure you would like this to be as to how much time and effort you want to put into it as to how you would or could lock things down.
May 5 '09 #2
It is a simple inventory list, I just don't want data getting erased on accident. I want to spend very little time, again just the three fields need updates the others need to be locked to prevent them being accidentally erased or modified. Thanks again.
May 5 '09 #3
Denburt
1,356 Expert 1GB
In order to lock down the fields in question you will need to know a little VBA this isn't really a point and click solution if that is what you are looking for.

However if you do know a little VBA then I will be glad to help as you can use MS Access security or if your in a domain you can use AD or you can use a windows login, it all depends on the security you are looking for. Basically when the form in question loads you would add an event such as Form_OnLoad and insert the appropriate code requesting the user info and then allow editing or not depending on the control.
May 5 '09 #4
I could try the VBA steps needed, we are not all going to be using this from the same domain, we have users on-site that will be remote connecting, and accessing a shared drive where the database is located. Security is not terribly important. I just don't want people messing with existing data, they have no real incentive to. I would only need one user, as all on-site people could use the same one.
May 5 '09 #5
Denburt
1,356 Expert 1GB
I would use a routine to cycle the controls on the form and either use the tag or the first three letters of the name of the control i.e SHW so that I would know what needed to be enabled for who etc. again there are many ways to achieve the end result. Setup MS Access security and once you have that.
Expand|Select|Wrap|Line Numbers
  1. Set wks = DBEngine.Workspaces(0)
  2. GrpCount = wsp.Users(strUser).Groups.Count
  3.  
  4. strGrp= "Whatever you want"
  5.  
  6. chkFlag = False
  7. For j = 0 To GrpCount - 1
  8.     If wsp.Users(strUser).Groups(j).Name = strGrp  Then
  9.         chkFlag = True
  10.         Exit For
  11.     End If
  12. Next
  13.  
  14. For Each ctl In Me.Controls
  15. if chkFlag Then
  16.    If Left(C.Name, 3) <> "shw"  Then 
  17. ctl.enabled = true
  18. ctl.locked = false
That would leave the Three fields alone and you could essentially lock or unlock a field or fields etc. From there I think you would have a start let me know if you have any questions.
May 5 '09 #6

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

Similar topics

1
by: BingoHandJob | last post by:
Hello group! I'm having a problem and I hope some of you may be able to point me in the right direction. I inherited a web site using php, running on Windows 2000 & IIS. The site was...
15
by: lkrubner | last post by:
I want to give users the power to edit files from an easy interface, so I create a form and a PHP script called "fileUpdate". It does a reasonable about of error checking and prints out some...
7
by: Kim Lots | last post by:
Hi Sorry to disturb you again but i really like to know what's the NTFS folder permissions on a "virtual directory" folder for a public webserver iis 5.x running ASP 3.0 with an Access DB on a...
3
by: Alex Maghen | last post by:
Hi. I am really confused about the NTFS permissions that I must set for my ASP.NET 2.0 IIS application to work properly. I have looked at KB:815153 and that helps a *little* bit, but I need...
1
by: beary | last post by:
Hello everyone, I'm not sure if this is the correct forum for this, and apologies for the length of this question, but I'm desperate for some good advice... I'm in way over my head with file...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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
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
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.