Results 1 to 2 of 2
  1. #1
    RachelBedi is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jul 2012
    Posts
    67

    Setting User Permissions using Dlookup

    I have a form which needs to be used by particular parties to edit information but should not be available to all users, it is currently set up with a password entry form. Unfortunately people are complaining that they have to enter a password in order to access the form so I am trying to set up a way that Access can check permissions for certain users. I have a users table set up with usernames and a yes/no column for permissions and a function which calls the Windows environment username.



    I know I would need to use Dlookup in order to check the permissions column but how would I get the code to also call the username for identification? (the function is called GetUserName)

    I am very new to VBA so any help would be greatly appreciated!

  2. #2
    JeroenMioch's Avatar
    JeroenMioch is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    May 2012
    Location
    Den Haag, Netherlands
    Posts
    368
    Just put a textbox in the login form and call the machine or username with :
    =fOSMachineName()
    =fOSUserName()
    = Environ("UserName") for network identification

    Then check the value of the textbox against your premissions table.

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

Similar Threads

  1. User permissions - access 2010
    By Outlook in forum Security
    Replies: 3
    Last Post: 12-03-2012, 08:19 AM
  2. User Permissions
    By ccordner in forum Security
    Replies: 3
    Last Post: 03-14-2012, 10:50 AM
  3. Replies: 0
    Last Post: 12-17-2010, 07:29 AM
  4. Macro for user permissions
    By Loisw in forum Programming
    Replies: 1
    Last Post: 10-28-2010, 07:47 AM
  5. User and Group Permissions
    By sdondeti in forum Security
    Replies: 1
    Last Post: 02-01-2010, 05:47 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