Re: Individual Record Permissions



On Thu, 20 Jul 2006 10:58:02 -0700, schuh.mike <schuhmike@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I am creating a database for students' profiles. I have one table, with each
record being a different student and information. I would like to set up
security so that the student can only modify their record, and only view
everyone elses.

Any ideas how this can be achieved? My current theory is to check the
username they are logged in as, and then lock/unlock the textboxes whether
its their profile or not. Sound right?

Correctly implement User Level Security, then set the .Enabled property of the form based on the login. Do this in the
form's Current event ... I'm assuming that you'd store the student's username somewhere (you have to be able to
determine that Sue Smith's user name in the .mdw file is ssmith123, or whatever it may be), so you do this:

Sub Form_Current
Me.Enabled = (Me!strUserName=CurrentUser)
End Sub

Assuming you have a field on the form named strUserName which stores the student's UserName, this would effectively
allow students to browse all records, but only their own data would be Enabled for edit/update.

Some ULS links:

www.jmwild.com
http://www.ltcomputerdesigns.com/Security.htm
http://www.geocities.com/jacksonmacd/

Scott McDaniel
scott@xxxxxxxxxxxxxxxxxxxxxxxxx
www.infotrakker.com
.



Relevant Pages

  • Re: AD forest layout recommendations
    ... we are implementing separate network level ... > protections in order to directly address security issues. ... > from student machines. ... >> A) GCs will authenticate for any domain in the forest, ...
    (microsoft.public.windows.server.active_directory)
  • Re: AD forest layout recommendations
    ... Regardless of AD security, we are implementing separate network level ... from student machines. ...
    (microsoft.public.windows.server.active_directory)
  • Re: AD forest layout recommendations
    ... >> Regardless of AD security, we are implementing separate network level ... >> from student machines. ... we are going to keep the student machines separated ... >> through a portal, not windows logon based. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Turnitinbot exploits webserver vulnerabilities?
    ... > Our IDS picked up this request against one of our webservers and I ... > student papers against the content we find on the Internet to ... Turnitin helps educators and students take full ... Security Linux, the comprehensive security solution that combines six ...
    (Incidents)
  • Re: Training Lab Question
    ... I would say always make them 'sudo', as its just a good overall practice. ... Also, check out Trinux, a RAM based version that is security specific, has many ... I'm in the process of setting up a Pen Testing training lab. ... The student workstations running Slackware 8.x. ...
    (Pen-Test)