How can I automatically put the current user into a field?

D

devastator442

Hello all,

In my table, I want to have a field that says "Updated By" and another that
says "Update Date". Anytime changes are made to the record, I would like the
current user's name and the date to get put into those fields. Does anyone
know how to do this or at least point me in the right direction?

Thanks
David
 
A

Al Camp

Use the forms BeforeUpdate event...
UpdatedBy = [currentuser]
UpdateDate = Date
hth
Al Camp
 
K

Karen

Question: Where does [currentuser] come from? Is this in a table?

Al Camp said:
Use the forms BeforeUpdate event...
UpdatedBy = [currentuser]
UpdateDate = Date
hth
Al Camp

devastator442 said:
Hello all,

In my table, I want to have a field that says "Updated By" and another
that
says "Update Date". Anytime changes are made to the record, I would like
the
current user's name and the date to get put into those fields. Does
anyone
know how to do this or at least point me in the right direction?

Thanks
David
 
P

pdsjc

devastator442 said:
Hello all,

In my table, I want to have a field that says "Updated By" and another that
says "Update Date". Anytime changes are made to the record, I would like the
current user's name and the date to get put into those fields. Does anyone
know how to do this or at least point me in the right direction?

Thanks
David
 

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