CurrentUser

B

Buddy King

Hi. In one of my input forms I want to default the user and date field to defaults Now() and CurrentUser(). I am not sure where Access gets its machine information. We use XP and everybody's ID is Admin. Do I need to set up individual profiles for everybody? What is the easiest, cleanest way to ID the current user? Our system administrator is hardware oriented and does not know this answer, so I would appreciate any enlightnement.
Thanks.
 
R

Rick Brandt

Buddy King said:
Hi. In one of my input forms I want to default the user and date field to
defaults Now() and CurrentUser(). I am not sure where Access gets its
machine information. We use XP and everybody's ID is Admin. Do I need to
set up individual profiles for everybody? What is the easiest, cleanest way
to ID the current user? Our system administrator is hardware oriented and
does not know this answer, so I would appreciate any enlightnement.

If you are not using the built in security for Access then CurrentUser() is
useless as everyone will show up as the user "Admin". Code at the link
below will allow you to grab the user's networking UserName.

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