Re: current login
From: Jason (jlewis_at_hotmail.com)
Date: 02/18/05
- Next message: Jado: "Re: Acceess 97 Upsized to SQL 2000 - Memo Field errors"
- Previous message: Nikos Yannacopoulos: "Re: current login"
- In reply to: Nikos Yannacopoulos: "Re: current login"
- Next in thread: Nikos Yannacopoulos: "Re: current login"
- Reply: Nikos Yannacopoulos: "Re: current login"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 18 Feb 2005 12:35:11 +0100
Hi Nikos,
Thanks for tip. I agree that normal users don't know how to change it. Do
you also know to get the hostname?
Greetings,
J
"Nikos Yannacopoulos" <nyannacoREMOVETHISBIT@in.gr> schreef in bericht
news:eyemFvaFFHA.3824@TK2MSFTNGP10.phx.gbl...
> Jason,
>
> Not sure if this will work under Novell, but as far as Windows goes:
>
> Environ("UserName")
>
> will return the Windows login name.
>
> It can be argued that environment variables are fairly easy to change, so
> some advise to use an API call instead, in order to retrieve the Windows
> login name. The counter-argument is that hardly any user will know how to
> do that, even if they know it's being used, but if you want to go by the
> book you can find the code in:
>
> http://www.mvps.org/access/api/api0008.htm
>
> HTH,
> Nikos
>
> Jason wrote:
>> Hi,
>>
>> I was wondering how i could use the current login in a textbox. I know
>> the currentuser() gives me e.g. 'Admin' if no security is set up.
>>
>> But how can i get the login and/or hostname from windows (or if logged in
>> through novell)?
>>
>> Greetings,
>>
>> J
- Next message: Jado: "Re: Acceess 97 Upsized to SQL 2000 - Memo Field errors"
- Previous message: Nikos Yannacopoulos: "Re: current login"
- In reply to: Nikos Yannacopoulos: "Re: current login"
- Next in thread: Nikos Yannacopoulos: "Re: current login"
- Reply: Nikos Yannacopoulos: "Re: current login"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|