S Sol Registered User. Local time Today, 12:19 Joined Feb 24, 2000 Messages 31 Sep 5, 2000 #1 Do you know how I can automatically fill in who a form was modified by based on a users Access login? Thanks much!
Do you know how I can automatically fill in who a form was modified by based on a users Access login? Thanks much!
K Karl K Registered User. Local time Today, 12:19 Joined Feb 2, 2000 Messages 41 Sep 5, 2000 #2 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.
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.
S Sol Registered User. Local time Today, 12:19 Joined Feb 24, 2000 Messages 31 Sep 5, 2000 #3 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!
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!
K Karl K Registered User. Local time Today, 12:19 Joined Feb 2, 2000 Messages 41 Sep 6, 2000 #4 Or, use a field CreatedBy with a default value (set in properties) of CurrentUser(), and don't change it.
Or, use a field CreatedBy with a default value (set in properties) of CurrentUser(), and don't change it.