display user logon name

L

Lynn

I would like the user logged into the data base to have his/her name appear
automatically in the name field of all edited records in a form
 
D

Dorian

I don't beleieve you can access the user's name unless you have the user
enter their name when they login or deduce their name from a table of login
id and name.

The login id (from Windows) is available by running:
Dim strUser as string
strUser = Environ("Username")

or you could use the function fosUserName (google it for details)

-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 

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