How do I capture the user name?

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top