Modified by field?

Sol

Registered User.
Local time
Today, 12:19
Joined
Feb 24, 2000
Messages
31
Do you know how I can automatically fill in who a form was modified by based on a users Access login?

Thanks much!
 
Use the CurrentUser() function. That is the login name of the current user.

Lets say you have two fields:
TimeUpdated
UpdatedBy

In the Before Update for the form:
Me![TimeUpdated] = Date
Me![UpdatedBy] = CurrentUser

That should do it. Make sure you don't put this stuff in After Update or you'll get stuck in a loop.
 
Thanks, that did work. Do you know if there is a way to distinguish between Created By and Modified By? I need to keep track of both.

Thanks!
 
Or, use a field CreatedBy with a default value (set in properties) of CurrentUser(), and don't change it.
 

Users who are viewing this thread

Back
Top Bottom