Consulting

Results 1 to 2 of 2

Thread: Include username and name from Windows into textbox

  1. #1

    Include username and name from Windows into textbox

    Hi everyone,

    I am making a form as report and also want to include the creator of the report based on the "windows user name and also the name" by default in the Windows system

    The username is not an issue but I don't know how to add the "name by default" from the computer registration. Does somebody know the option?


    Dim wshNetwork As Object 'New wshNetwork
    Set wshNetwork = CreateObject("WScript.Network")
    Me.Issuerusername = wshNetwork.username
    'Me.IssuerName = wshNetwork. ???
    Set wshNetwork = Nothing

    'username: charlycsh
    'Name: "Charles M. Burns"

  2. #2
    VBAX Guru
    Joined
    Mar 2005
    Posts
    3,189
    Location
    Have you tried the
    CurrentUser()
    function?
    Does that meet your needs?

Posting Permissions

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