Automatically add user's name

M

Mike

I have a database which is used by several users on a
network. Is it possible to automatically add the users's
name to the record being created by this user? (I don't
want the user to know that his name is registered)
 
J

Joan Wild

Not directly in a table.

However you can do this in a form, which should be what you give users.
They shouldn't even see/be aware of the tables.

Add a field to your table - CreatedBy

For every form applicable, add a textbox (hidden and bound to CreatedBy) and
set it's default value to either =CurrentUser() (if you've implemented
Access security), or use the function at
http://www.mvps.org/access/api/api0008.htm
to retrieve their network name.
 

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