Results 1 to 8 of 8
  1. #1
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235

    TextBox Knows the Computer User


    Hey everyone, I'm trying to have a textbox on a form know who is logged into the computer. Is there a way to do that? Something like the value of the textbox being =username..

    Please help.

    Mike

  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,922
    Here's a link that you might find useful.

  3. #3
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    what username do you refer to? Is it the computername or the user who is logged and using your program?

  4. #4
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Marianne,

    The user who is logged in and using the computer. So whenever the user logs in to the PC I need a textbox in Access ('07) to show that user.

    Ruralguy,
    I haven't looked over you link much yet, but doesn't quite look like what I need. I'll look over it some more here shortly.
    Thanks all,

    Mike

  5. #5
    marianne is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Asia Pacific Region
    Posts
    150
    ruralguys link would be useful there.

  6. #6
    MFS is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2009
    Location
    Ohio
    Posts
    235
    Hey, thanks Ruralguy and Marianne, The link worked perfectly. Awesome!!!

  7. #7
    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,922
    Glad we were able to help.

  8. #8
    Egemen is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2008
    Posts
    2
    =Environ("USERNAME")
    =Environ("COMPUTERNAME")

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

Similar Threads

  1. change() on the textbox
    By skywalker in forum Forms
    Replies: 0
    Last Post: 03-01-2009, 01:28 AM
  2. total in textbox
    By micfly in forum Access
    Replies: 3
    Last Post: 11-09-2008, 11:24 AM
  3. Replies: 0
    Last Post: 08-20-2008, 10:14 PM
  4. Textbox will not allow input
    By cwf in forum Forms
    Replies: 0
    Last Post: 04-04-2008, 04:08 PM
  5. dynamic textbox
    By vam in forum Programming
    Replies: 1
    Last Post: 06-04-2006, 08:59 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