Results 1 to 3 of 3
  1. #1
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682

    Get User Automatically and Security Level example

    The attached shows how to get the user's loginID automatically and have a 'user' security level type table which you can then utilize to disable/enable/make visible/invisible buttons on the form (as demonstrated).



    No need to ever have the user login and the getuser() function can be used as expressions in queries or anywhere you like and will always return the user's windows loginID.

    Use it to set the default 'EnteredBy' field in your table so you always know who entered the record.

    Or use it to allow certain admin type users to give permissions or security levels to other users to the database.

  2. #2
    PRM is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2015
    Posts
    1
    pkstormy,

    I'm new to this forum, but I'm interested in the topic of your post. Unfortunately, I do not see the attachment referenced in your post. Has it been removed?

    Thank you,
    PRM

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,795
    Apparently attachments for a lot of threads where lost earlier this year.

    pk's example possibly uses the Environ() function to pull user's network login ID and match that to record in Users table (it's what I do). Login procedure is fairly common topic. Should be able to find other threads with examples, such as: https://www.accessforums.net/program...ing-55812.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. User Level Security eliminated?
    By mjhopler in forum Security
    Replies: 6
    Last Post: 09-29-2011, 05:14 PM
  2. Replies: 8
    Last Post: 06-30-2010, 10:57 PM
  3. user level security and splitting access db
    By tomClark in forum Security
    Replies: 3
    Last Post: 02-06-2010, 04:28 PM
  4. User level security question
    By genesis in forum Security
    Replies: 1
    Last Post: 07-08-2009, 10:10 AM
  5. User Security
    By Sanrv1f in forum Security
    Replies: 1
    Last Post: 06-03-2009, 01:36 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