get network username?

  • Thread starter Thread starter Kathy
  • Start date Start date
K

Kathy

Hello,

Is it possible to get the username (in a form for
example) of a user that is logged onto a network?? Thanks
for any input

Kathy
 
Thanks, i got the code, but I cant get it to work, im new
to access and dont know how to properly use modules,
thanks.

Kathy
 
1. Select the Modules tab of the Database window.

2. Click New.

3. Paste the code into the module.

4. Save the module with a name such as "basApiCalls".

You should now be able to use the function like any of the built-in
functions in Access.
 
I finally got this to work, based on the previous posts and
by reading the instructions. I have a text box for
retrieving this, and a field called SalesPerson which stores
it. I put this into the text1_on enter code

text1 = fosUserName
SalesPerson = text1

HTH-
Mike



: LOL, no no i get that part, I just dont get how to use
: that particular function, it doenst seem to work (what
: parameters etc).
:
:: -----Original Message-----
:: 1. Select the Modules tab of the Database window.
::
:: 2. Click New.
::
:: 3. Paste the code into the module.
::
:: 4. Save the module with a name such as "basApiCalls".
::
:: You should now be able to use the function like any of
:: the built-in functions in Access.
::
:: --
:: Allen Browne - Microsoft MVP. Perth, Western Australia.
::
:: Reply to the newsgroup. (Email address has
: spurious "_SpamTrap")
:: ::: Thanks, i got the code, but I cant get it to work, im
::: new to access and dont know how to properly use modules,
::: thanks.
:::
::: Kathy
:::
:::: -----Original Message-----
:::: For the API call to get the network user name, see:
:::: http://www.mvps.org/access/api/api0008.htm
::::
:::: --
:::: Allen Browne - Microsoft MVP. Perth, Western
:::: Australia. Tips for Access users -
: http://allenbrowne.com/tips.html
:::: Reply to the newsgroup. (Email address has
::: spurious "_SpamTrap")
::::
:::: ::::: Is it possible to get the username (in a form for
::::: example) of a user that is logged onto a network??
::::: Thanks for any input
::
::
:: .
 
Back
Top