Results 1 to 3 of 3
  1. #1
    skankingpigeon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    3

    Filter by Records Assigned To User

    Hey,



    I'm trying to create a table that shows only records assigned to the user based on their environ("username"). I tried creating a code that adds the user name to a table, but this won't work as multiple people will be using the database at once.

    I'm pretty new to access, but have good knowledge of VBA with excel. any ideas on how this can be done?

  2. #2
    skankingpigeon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    3
    Ah...worked it out.

    thanks anyway :-)

  3. #3
    skankingpigeon is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    3
    just in case anyone googles this and wants the answer, shove this in a module and use the function in the query:
    Function UsersName() As String
    UsersName = Environ("UserName")
    End Function

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

Similar Threads

  1. Filter table in form by user input
    By swavemeisterg in forum Forms
    Replies: 1
    Last Post: 06-11-2012, 02:54 PM
  2. Replies: 3
    Last Post: 12-14-2011, 01:24 PM
  3. MS Access Date filter basedon User Input
    By shanmugamgsn in forum Access
    Replies: 1
    Last Post: 12-12-2011, 04:15 PM
  4. Query for user to filter by every field
    By tommy93 in forum Queries
    Replies: 7
    Last Post: 11-07-2011, 04:14 AM
  5. Replies: 3
    Last Post: 07-10-2011, 05:37 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