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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TRIGGER TYPE ACTIVITY 1

Status
Not open for further replies.

PrgrmsAll

Programmer
Apr 8, 2003
180
US
Good morning. I am attempting to create an audit capability within a few MS Access tables. By this I want to have two fields on each record (EDIT_DT and EDIT_BY) auto-stamped each time the record is added or edited. In SQLServer I would create a trigger to do this. What are my options in Access? I think with EDIT_DT I can just have the field set to default Now(), right? How can I capture the user, is there a variable that has the users ID that I can default into EDIT_BY? Any help would be appreciated. Thanks.
 
Wow! Absolutely perfect. Thank you. This is great code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top