Last Updated by Who?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a field that has the date when the data in the form was last updated,
but what i wanted to know is who updated it if the database is on a shared
network. Any help is appreciated
 
There's no way of doing that automatically in a table. The only way would be
to use a form, and put logic in the form's BeforeUpdate event to add that
information to the table.
 
Matt said:
I have a field that has the date when the data in the form was last
updated, but what i wanted to know is who updated it if the database
is on a shared network. Any help is appreciated

Is it split? Are you using user level security?
 
I have seen it done before i just wasn't sure how it was done. Must be like
you said using logic in the event
 
Assuming you've got the user's ID, it's a one-liner in code:

Me.LastUpdatedBy = "UserId"

It's knowing where to put that one line that matters... <g>

The above assumes that you've got a field in the recordset named
LastUpdatedBy, whether or not it's a textbox on the form.

If you don't know how to get the user's ID, see
http://www.mvps.org/access/api/api0008.htm at "The Access Web" for how to
get the network ID, or use the CurrentUser function if you've implemented
Access User-Level Security (i.e.: if the users have to log into the
application)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top