Results 1 to 5 of 5
  1. #1
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164

    Command button visible when the correct windows user is logged in (environ user)


    Hi,

    I want to create a button is only visible to a select admin username list.

    I'm not sure how to do it?

    I imagine the code would check against a table of users, if a name matches the logged in user (environ user) the button becomes visible.
    Can anyone help with the code or point me in the right direction please.

    Thanks

    Sent from my SM-G935F using Tapatalk

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,914
    Cross posted at: http://www.access-programmers.co.uk/...d.php?t=290168

    When you cross post, tell readers you have done so and provide the associated link(s).

    Here is why!
    (RG for short) aka Allan Bunch Previous MS Access MVP - WinXP Pro, Win7 Pro Win10 Pro - acXP, ac07, ac10, ac13
    How to mark the thread as Solved!
    Teaching is not filling a bucket but lighting a fire.
    Borrowed quote..."Docendo discimus"

  3. #3
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    Quote Originally Posted by RuralGuy View Post
    Cross posted at: http://www.access-programmers.co.uk/...d.php?t=290168

    When you cross post, tell readers you have done so and provide the associated link(s).

    Here is why!
    Hi Rural Guy,

    Cross posted?

    Have I posted this post wrong or something?

    Sent from my SM-G935F using Tapatalk

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,914
    Have you looked at the "Here is why" link?
    (RG for short) aka Allan Bunch Previous MS Access MVP - WinXP Pro, Win7 Pro Win10 Pro - acXP, ac07, ac10, ac13
    How to mark the thread as Solved!
    Teaching is not filling a bucket but lighting a fire.
    Borrowed quote..."Docendo discimus"

  5. #5
    djspod is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Mar 2015
    Posts
    164
    I have now, apologies, i did realise.
    I will follow the rules going forward .

    Thanks

    Sent from my SM-G935F using Tapatalk

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

Similar Threads

  1. Logged In user Names
    By Parminder in forum Access
    Replies: 5
    Last Post: 07-23-2015, 02:17 PM
  2. Replies: 4
    Last Post: 06-01-2013, 11:32 PM
  3. logged user name on main form
    By foxtet in forum Forms
    Replies: 1
    Last Post: 07-30-2011, 03:00 PM
  4. Getusername of currently logged in user
    By nkuebelbeck in forum Access
    Replies: 8
    Last Post: 06-29-2011, 04:06 PM
  5. Currently logged in user into text box
    By ne16428 in forum Security
    Replies: 5
    Last Post: 06-10-2009, 11:46 AM

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 - Senior Forums