Changes/Updates Question

G

Guest

Hi all,

I am wondering if I create usernames and passwords, if there is a way to
display in the database who has added or changed information?

If I have a database of contacts, for example, and multiple users -- if one
user enters a new contact is there a way to display who entered this contact
on the form?
 
D

Douglas J. Steele

Add a LastUpdatedBy field to your table, and put code in the form's
BeforeUpdate event to set the value of that field to CurrentUser.

In actual fact, it's not really necessary to create usernames and passwords
if that's all you're trying to do. Take a look at
http://www.mvps.org/access/api/api0008.htm at "The Access Web" for how to
determine the user's Windows Login ID.
 
G

Guest

Thanks so much, Doug!! :)

Douglas J. Steele said:
Add a LastUpdatedBy field to your table, and put code in the form's
BeforeUpdate event to set the value of that field to CurrentUser.

In actual fact, it's not really necessary to create usernames and passwords
if that's all you're trying to do. Take a look at
http://www.mvps.org/access/api/api0008.htm at "The Access Web" for how to
determine the user's Windows Login ID.
 

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