How do I capture the user name?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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
 
Back
Top