Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Dec 2000
    Location
    Ohio, USA
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    OS registry information

    Hello,
    I am interested in getting the user name from the OS registry. I believe this can be done with VBA.
    Thanks

  2. #2
    4 Star Lounger
    Join Date
    Dec 2000
    Location
    London, Ontario, Canada
    Posts
    437
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: OS registry information

    Check <A target="_blank" HREF=http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Cat=&Board=acc&Number=14151&page=& view=&sb=&vc=1#Post14151>this thread</A>

  3. #3
    Lounger
    Join Date
    Dec 2000
    Location
    Ohio, USA
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: OS registry information

    Hello,
    Thank you!!! I was trying to make it harder than it needed to be. Environ(26) gives the USERNAME. I did my search of this site with registy instead of username.
    Thanks again,

  4. #4
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Edmonton, Alberta, Canada
    Posts
    326
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: OS registry information

    Just an observation to anyone proposing to use environment variables to get the username - I hope you're not planning to use it for any sort of security; what's to prevent someone from changing the environment variable? If you're using Windows NT or Windows 2000, using the code that has been posted several times will be a lot more secure.

  5. #5
    Lounger
    Join Date
    Dec 2000
    Location
    Ohio, USA
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: OS registry information

    Hello,
    After reading Mr. Martin's comments, I remembered the client is using Win 95! I tried the environ command and it did not work, however on 2/12/1 you had a post with a solution (RE:Log Users). As we are not using the name as security but as a tracking devise this method (checked with Win 95 and Win 2KP) should fill the bill. I should have explained the clients system and they wanted Access 97.
    Thank you all for your answers. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

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