I want that USER_Name captured... but how?

Carl_R

Registered User.
Local time
Tomorrow, 00:20
Joined
Aug 16, 2002
Messages
82
*Access97*

Had a look but can't seem to find anything related.

My DB is split on a network.

I have a form with a textbox called WHO. The ControlSource of WHO is =UCase(USER()) (USER is a module) - basically, this captures the user's ID from their NT logon session and displays it on the form.

This works fine but how do I capture that person's ID into my table?
 
I use =currentUser()
together with work group security file.
There is a wizard to instal the work group. Takes abit of time to set up, but, I wouldn't be without it


Simon
 
samson said:
I use =currentUser()
together with work group security file.
There is a wizard to instal the work group. Takes abit of time to set up, but, I wouldn't be without it


Simon

Thanks for the reply. I want to avoid using security... it's a really basic app.

The reason we want to capture the ID is because we want to track who is raising records (so we can spank them when they get it all wrong).
 
Carl,

I assume that you have a table set up with the users details. If this is the case then simply include an additional field in this table to record their NT logon name.

After you have updated the table with the additional info you can use a lookup to display the user ID.

Cheers

Flyer
 
This will capture the userName

MsgBox Environ("username")

Col
 
Excellent!
Thanks all for the assistance.
 
Sorry, I should have said courtesy to GHudson for pointing out the Environ function a couple of weeks back. . . .

Col
 

Users who are viewing this thread

Back
Top Bottom