detect user

I

Irene

i have a system. how can i detect the user who has been change the data or
update the data? i want it keep in a table and can be a proof when something
going wrong with the data.
 
K

Keith Wilby

Irene said:
i have been trying this. but cant. i dont know y. what is API?

Paste the code into a module and save it. You can then call it from your
form's "Before Update" event to store the result in a table:

Me.txtUserName = fOSUserName

where "txtUserName" is the name of a text box bound to the field where you
want to store the name.

Keith.
 
I

Irene

hi keith,

thanks for ur help! but i stil have a question. is it need test on the
server? cos i'm copy the form and the table and put in my drive C to try, but
it didn't show anything. is it need put the table in the server, then the
form in the own pc? the result wil show the computer name or "admin" if he o
she is the admin for their own pc. sorry, because i'm new to this topic. hope
u stil can continue helping me. thanks!
 

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