Currentdb.username

A

Arvin Meyer

belinda shu said:
Hi, how to get the username on currentdb? Hope's this clear.

If you have security enabled with an MDB, you can use the built-in
CurrentUser() function. If security is not enabled, it will return: admin

For the Windows login name use:

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

For the full name of the currently logged in user:

http://access.mvps.org/access/api/api0066.htm

For a remotely logged in user:

http://access.mvps.org/access/api/api0062.htm

and lastly, for the computer logged in name:

http://access.mvps.org/access/api/api0009.htm

--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.accessmvp.com
http://access.mvps.org
Co-author: "Access Solutions", published by Wiley
 

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