PC Review Forums Newsgroups Microsoft Access Microsoft Access Security detect user

Reply

detect user

 
Thread Tools Rate Thread
Old 17-04-2008, 11:34 AM   #1
Irene
Guest
 
Posts: n/a
Default detect user


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.
  Reply With Quote
Old 17-04-2008, 12:02 PM   #2
Keith Wilby
Guest
 
Posts: n/a
Default Re: detect user

"Irene" <Irene@discussions.microsoft.com> wrote in message
news:52FE4D1B-29F5-4D68-B128-549A73092595@microsoft.com...
>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.


You can either use the CurrentUser function or you can grab the network ID
using this:

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

Keith.
www.keithwilby.com

  Reply With Quote
Old 17-04-2008, 01:24 PM   #3
Irene
Guest
 
Posts: n/a
Default Re: detect user

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

"Keith Wilby" wrote:

> "Irene" <Irene@discussions.microsoft.com> wrote in message
> news:52FE4D1B-29F5-4D68-B128-549A73092595@microsoft.com...
> >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.

>
> You can either use the CurrentUser function or you can grab the network ID
> using this:
>
> http://www.mvps.org/access/api/api0008.htm
>
> Keith.
> www.keithwilby.com
>
>

  Reply With Quote
Old 17-04-2008, 02:09 PM   #4
Keith Wilby
Guest
 
Posts: n/a
Default Re: detect user

"Irene" <Irene@discussions.microsoft.com> wrote in message
news:77256773-3E96-4AF1-A611-78AEF439D699@microsoft.com...
>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.

  Reply With Quote
Old 18-04-2008, 03:05 AM   #5
Irene
Guest
 
Posts: n/a
Default Re: detect user

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!

"Keith Wilby" wrote:

> "Irene" <Irene@discussions.microsoft.com> wrote in message
> news:77256773-3E96-4AF1-A611-78AEF439D699@microsoft.com...
> >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.
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off