Results 1 to 5 of 5
  1. #1
    andy-29 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Culver City
    Posts
    34

    AutoFill User Info

    I would like to autofill a field in a form based on the user's login name. Have access pull the username from the logged on user.

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Look at this thread using the Environ(Username)

    http://www.access-programmers.co.uk/...d.php?t=221559

  3. #3
    andy-29 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Culver City
    Posts
    34
    I'm getting #Name? on the field??

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Where are you putting the function. It is a vba function. Did you create the GetWinUser function? Share what you did, so that we don't have to guess. The more information the better.

    Alan

  5. #5
    andy-29 is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2012
    Location
    Culver City
    Posts
    34
    Ok, got it to work with a code provided by Dev Ashish.
    Link: http://access.mvps.org/access/api/api0008.htm

    Thanks!

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

Similar Threads

  1. Replies: 13
    Last Post: 11-18-2013, 02:20 PM
  2. Replies: 3
    Last Post: 10-24-2012, 05:41 PM
  3. Replies: 1
    Last Post: 07-20-2012, 05:35 PM
  4. Replies: 2
    Last Post: 04-25-2012, 08:14 AM
  5. Replies: 3
    Last Post: 01-31-2011, 11:47 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