Results 1 to 3 of 3
  1. #1
    mdr is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    2

    Security - controlling external user access to data


    Hello, I'm trying to identify whether Access is the right tool for my requirements:


    Objective: Regularly gather info from our Partners on their marketing campaigns
    Users: ~100 individuals outside of my employer organization
    Requirements:
    1. Use of a form for data entry
    2. Ability for the external user to see what information they've already entered - WITHOUT seeing the data entered by our other Partners

    Is that possible with Access?

    Thanks,
    mdr

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    In the db, I have a tUsers table, with userID, Name, and Level
    USERID, Name, LEVEL
    bob12, bob smith, M
    pam4, pam jones,""
    xman1, charles xavier, A




    when user opens the db, the main menu form will open and grab the userID.
    Then lookup that persons rights in order to enable/disable controls.
    put the UserId into an invisible text box on the form,txtUserID , so queries can see it.


    Code:
    public gvUserID 
    
    
    sub form_load()
    dim vLevel
    
    
       gvUserID =  Environ("Username")      'get userID,visible in all forms
    
    
    'get level from user table
       vLevel = Dlookup("[Level]","tUsers","[userID]='" & gvUserID & "'")
    
    
    'now, enable/disable items on form
       select case vLevel
             case "A"  'admin 
                 'all is enabled
    
    
             case "U"  'normal user
                 txtBox1.enabled = false
                 txtManager.enabled = false
    
    
             case "M"  'manager
                 txtBox1.enabled = false
       end select
    end sub

    now use queries that filter on the textbox txtUserID so users can only see THEIR data:
    select * from table where [userid]=forms!fMyform!txtUserID


    or join a table with the users lists and what they can open.

  3. #3
    mdr is offline Novice
    Windows 10 Office 365
    Join Date
    Jun 2020
    Posts
    2
    ranman256, you are the man! Thank you!

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

Similar Threads

  1. Replies: 7
    Last Post: 10-27-2016, 06:10 AM
  2. Split / Database Security vs User Access
    By msaccess2&beyond in forum Database Design
    Replies: 7
    Last Post: 05-27-2014, 12:24 PM
  3. Replies: 13
    Last Post: 11-18-2013, 02:20 PM
  4. Access user security level
    By tsv_tech in forum Access
    Replies: 2
    Last Post: 07-25-2012, 11:08 PM
  5. Access User Security
    By KkcBroad50s in forum Security
    Replies: 3
    Last Post: 04-29-2011, 09:31 AM

Tags for this Thread

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