Results 1 to 3 of 3

Thread: User Name

  1. #1
    Join Date
    Jan 2003
    Posts
    4

    Question Unanswered: User Name

    How can I have access retrieve the user id that the person logged into the network with?

    I have a combo box with User names to track purchase orders. I'd like it to default to the name the user logged in as.

    Thanks,

    Chris

  2. #2
    Join Date
    Feb 2002
    Location
    San Antonio, TX
    Posts
    69
    Make sure you have the Windows Scripting Host Object Model reference set.

    Function Test()

    Dim wsh As New IWshNetwork_Class

    Msgbox wsh.UserName

    End Function
    "Doing stuff is overrated. Take Hitler for example. He did lots but don't we all wish he'd have just stayed home and gotten stoned?"

  3. #3
    Join Date
    Jan 2003
    Posts
    4
    Thanks for the help!


    Originally posted by punkerboy
    Make sure you have the Windows Scripting Host Object Model reference set.

    Function Test()

    Dim wsh As New IWshNetwork_Class

    Msgbox wsh.UserName

    End Function

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •