How do I capture the user name?

J

Johnny Bright

Hi!

Is there a function I can use to do this? When a user opens the database, I
want my switchboard to automatically capture the user's name to be stored in
a public variable.

Thanks, this discussion group is great and all help is greatly appreciated!
 
R

Rick Brandt

Johnny said:
Hi!

Is there a function I can use to do this? When a user opens the
database, I want my switchboard to automatically capture the user's
name to be stored in a public variable.

Thanks, this discussion group is great and all help is greatly
appreciated!

Example code at this link will return the Windows Login name.

http://www.mvps.org/access/api/api0008.htm
 
Top