Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to record user logon 3

Status
Not open for further replies.

alr0

Programmer
May 9, 2001
211
US
Hi All,

I want to add a field to an Access 03 table that records the user logon that added a record. I thought I had used GetUser in the past but neither the help or knowledge base had that phrase or others I tried. Isn't there an easy way to trap the user logon?

Thanks,

alr

_____________________________________
There is no rule more invariable than that we are paid for our suspicions by finding out what we expected.

Henry David Thoreau
 
I'm sorry, Widows user logon.

alr

_____________________________________
There is no rule more invariable than that we are paid for our suspicions by finding out what we expected.

Henry David Thoreau
 
Thanks Remou,

Environ("username") worked just fine.

Are there circumstances where it would be advisable to use the API?

Thanks again,

alr

_____________________________________
There is no rule more invariable than that we are paid for our suspicions by finding out what we expected.

Henry David Thoreau
 
Environ("username") does not work in the same way in every situation, for example, you may have problems with it in Access 2003 because, I believe, it is restricted in Sandbox mode. In addition, you may get different results depending on the Windows version.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top