Re: Terminal Server user name

From: david epsom dot com dot au (david_at_epsomdotcomdotau)
Date: 07/26/04


Date: Mon, 26 Jul 2004 17:59:00 +1000

In Access, 'Environ$' gets you the environment variables.
At many locations there is a 'username' environment variable,
so you can use =Environ$("UserName")

This isn't better than using the windows API, just easier
to type :~)

(david)

"Kevin Witty" <kdwitty@yahoo.com> wrote in message
news:ZvwMc.8459$YK2.2308591@news4.srv.hcvlny.cv.net...
> I'm about to deploy Access 2003 in a terminal server environment. I'd like
> to be able to capture theTS (Windows) user logon name from within access
to
> track who's doing what. In a client-server environment I use MSLDBUsr to
> capture the computer name, but I doubt this will work now. Any
suggestions?
> Environmental variable I can grab? (Although no search I've done on
> "environmental variable" and Access has turned anything up.)
>
> Kevin
>
>



Relevant Pages

  • Re: VBA / VBS to get Desktop folder string
    ... How I am supposed to know how reliable the API is, ... programmers who design these applications make use of environment variables ... bypassing the Windows API set up for just this purpose, ... written will always be more secure than the Windows Registry, ...
    (microsoft.public.access.modulesdaovba)
  • Re: VBA / VBS to get Desktop folder string
    ... How I am supposed to know how reliable the API is, ... programmers who design these applications make use of environment variables ... bypassing the Windows API set up for just this purpose, ... written will always be more secure than the Windows Registry, ...
    (microsoft.public.access.modulesdaovba)
  • Re: Getting the home directory in Python and a bug in os.path.expanduser
    ... Edward Diener: ... exists, for getting the home directory, as opposed to using environment variables, but I can not find any Windows API for it at present. ...
    (comp.lang.python)
  • Re: How to get users local setting folder
    ... How do one query a list of ... environment variables in the system? ... >> local setting folder. ... What is the Windows API to get that folder? ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Mapping drives and request logon credentials
    ... You can use MapNetworkDrive to connect directly to a shared folder or any child folder beneath a shared folder. ... Password for the user identified by the UserName argument. ... The following example demonstrates how MapNetworkDrive can be used in a users logon script to connect to two network shares. ... The user name can be retrieved from the DOS environment variables, ...
    (microsoft.public.scripting.vbscript)