Home All Groups Group Topic Archive Search About

Identify who updated field

Author
13 Apr 2005 6:54 PM
Heidiho
Is there a way to create a field which automatically updates and identifies
the user who last updated a given field?

Author
13 Apr 2005 6:52 PM
Paul Overway
You need to get the Windows username or use the CurrentUser function (if you
have implemented workgroup security for the database).  See

http://www.mvps.org/access/api/api0008.htm

or refer to help for CurrentUser function.

--
Paul Overway
Logico Solutions
http://www.logico-solutions.com


Show quoteHide quote
"Heidiho" <Heid***@discussions.microsoft.com> wrote in message
news:1377565A-D6B4-4CD5-9B3E-528D5ACBA516@microsoft.com...
> Is there a way to create a field which automatically updates and
> identifies
> the user who last updated a given field?
Author
13 Apr 2005 8:38 PM
Mauricio Silva
Create the LastUpdate field in your table
In the form where you actually perform the update, put in the AfterUpdate
event:

If you have Windows Security:
LastUpdate = CurrentUser

If you do not have Windows Security:
http://www.mvps.org/access/api/api0008.htm

Mauricio Silva 2005

Show quoteHide quote
"Heidiho" wrote:

> Is there a way to create a field which automatically updates and identifies
> the user who last updated a given field?
Author
15 Apr 2005 11:16 PM
Bruce Kovacs
Don't you mean to use the BeforeUpdate event?  You would want to save the
editing user's ID with the other changes made to the record.



Show quoteHide quote
"Mauricio Silva" wrote:

>
> Create the LastUpdate field in your table
> In the form where you actually perform the update, put in the AfterUpdate
> event:
>
> If you have Windows Security:
> LastUpdate = CurrentUser
>
> If you do not have Windows Security:
> http://www.mvps.org/access/api/api0008.htm
>
> Mauricio Silva 2005
>
> "Heidiho" wrote:
>
> > Is there a way to create a field which automatically updates and identifies
> > the user who last updated a given field?
Author
16 Apr 2005 3:41 AM
TC
You are right, it should be BeforeUpdate.

However, eeryone seem to be missing the point, that the OP wants to
record the user last updated "a given field" - his words. It's not
clear what he means by that. Does he mean, the user who last updated:

- /any/ field in that record?

- a /certain, single/ field in that record (eg. Invoice Amount)?

- or does he want a record of who last updated /every/ field? (eg.
Invoice Amount: Tom; Invoice Date: Mark, & so on)

TC