How do I insert the current username into a field?

G

gedeon

I have a db with user-level security. I want to store the current username of
who modified a record using OnDirty, but don't know where to find it.
 
R

Rick Brandt

gedeon said:
I have a db with user-level security. I want to store the current
username of who modified a record using OnDirty, but don't know where
to find it.

CurrentUser()
 
T

TC

OnDirty is not the right event. What if they dirty the record but then
press Esc to discard their change?

I suggest you use BeforeUpdate. That event is fired when the record is
dirty /and/ the user has asked Access to actually save the change.

HTH,
TC
 

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

Top