Results 1 to 2 of 2
  1. #1
    rch918 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Dec 2016
    Location
    Texas
    Posts
    16

    Role Based Access to Edit


    I am looking for a way to give certain users, based on their Employee ID Type (1=Administrator, 2=Staff, etc.) the ability to edit specific fields in a form. I want all users to be able to view the column/fields but only level 1's can edit it. I have tried the following code with no success.

    Code:
     If EmployeeType_ID = "1" Then
    Me.MHMD_Dept.Enabled = True
    Me.ACO_Member.Enabled = True
    Me.MHMD_Dept.Locked = False
    Me.ACO_Member.Locked = False
    Else
    Me.MHMD_Dept.Enabled = False
    Me.ACO_Member.Enabled = False
    Me.MHMD_Dept.Locked = True
    Me.ACO_Member.Locked = True
    End If
    End Sub
    I do not have the Employee Type ID field in the specific form as it's based on each users log-in.

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Store the employeetype_id as the caption on an invisible label?

    I presume you've set up some sort of system to identify it?


    Sent from my iPhone using Tapatalk

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 10-16-2016, 10:15 AM
  2. Replies: 3
    Last Post: 02-09-2015, 09:06 PM
  3. form based on query - cant edit records
    By tweety in forum Forms
    Replies: 7
    Last Post: 04-10-2013, 03:42 PM
  4. User role problem
    By tsn.s in forum Programming
    Replies: 2
    Last Post: 02-10-2012, 03:30 AM
  5. Providing role based access
    By mrk68 in forum Security
    Replies: 3
    Last Post: 03-25-2009, 07:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums