This is a fairly common solution.
On your tables that you want to keep this information, add four fields:
DateCreated - Date
WhoCreated - text
DateModified - Date
WhoModified - text
This will keep a record of who created the record and when, and who last modified the record. If you want to keep a record of every transaction, then we can do that as well, but that is another post.
On the DateCreated field, add this as the Default Value: Now()
On the forms where data entry will happen for your tables, add all four new fields to the form, and set their Visible property to No. Then on the Before Insert event for the form, add this code:
Me.WhoCreated = (Environ$("Username"))
This will take the user's name and add it to the record as it is created.
On the same form's Before Update event, add this code:
Me.DateModified = Now()
Me.WhoModified = (Environ$("Username"))
This is the simplest solution but has limitations. If you want a transaction record for each transaction, then I would suggest sending the records to another database somewhere on the network, and then using the current and old values for each field.
Did this help?
mmcdonal
Look it up at:
http://wrox.books24x7.com