A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Audit Tracking - Users



 
 
Thread Tools Display Modes
  #1  
Old June 13th, 2008, 09:56 AM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 22
Default Audit Tracking - Users

Hiya,

Basically I have 2 tables tblEmployee and tblDetails. My database is a
shipping database that tracks all the freight in the warehouse.
Records are added by the guys in the warehouse and then edited by
staff in the office, therefore there will be multiple users of this
database. Need to devise somesort of tracking which records which user
has edited the record and what changes he/she has made. I have found a
great example which you have to add a field in tblDetails and set it
to memo and then attach some code in the beforeupdate event in the
form. This works really well but when you make amendments to the
record it always says user: Admin. How do you set up multiple users so
that it might say User: Warehouse, or User: Gemma etc...?

Fiona
  #2  
Old June 13th, 2008, 12:00 PM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Audit Tracking - Users

You can use an API call to Windows to get the user name (i.e. who is
currently logged in):
http://allenbrowne.com/ser-53code.ht...etworkUserName

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

wrote in message
...

Basically I have 2 tables tblEmployee and tblDetails. My database is a
shipping database that tracks all the freight in the warehouse.
Records are added by the guys in the warehouse and then edited by
staff in the office, therefore there will be multiple users of this
database. Need to devise somesort of tracking which records which user
has edited the record and what changes he/she has made. I have found a
great example which you have to add a field in tblDetails and set it
to memo and then attach some code in the beforeupdate event in the
form. This works really well but when you make amendments to the
record it always says user: Admin. How do you set up multiple users so
that it might say User: Warehouse, or User: Gemma etc...?

Fiona


  #3  
Old June 13th, 2008, 02:59 PM posted to microsoft.public.access.forms
scott04
external usenet poster
 
Posts: 197
Default Audit Tracking - Users

Allen's code for getting get work user name works lovely. I can say that i
personally use it and it grabs the login and timestamps and lets you know if
its an edit insert or delete. Thanks for all your helpfull posts Allen

"Allen Browne" wrote:

You can use an API call to Windows to get the user name (i.e. who is
currently logged in):
http://allenbrowne.com/ser-53code.ht...etworkUserName

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

wrote in message
...

Basically I have 2 tables tblEmployee and tblDetails. My database is a
shipping database that tracks all the freight in the warehouse.
Records are added by the guys in the warehouse and then edited by
staff in the office, therefore there will be multiple users of this
database. Need to devise somesort of tracking which records which user
has edited the record and what changes he/she has made. I have found a
great example which you have to add a field in tblDetails and set it
to memo and then attach some code in the beforeupdate event in the
form. This works really well but when you make amendments to the
record it always says user: Admin. How do you set up multiple users so
that it might say User: Warehouse, or User: Gemma etc...?

Fiona



  #4  
Old June 13th, 2008, 05:04 PM posted to microsoft.public.access.forms
Allen Browne
external usenet poster
 
Posts: 11,706
Default Audit Tracking - Users

Feedback appreciated.

I assume you were talking about this article:
Audit Trail - Log changes at the record level
at:
http://allenbrowne.com/AppAudit.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"scott04" wrote in message
...
Allen's code for getting get work user name works lovely. I can say that
i
personally use it and it grabs the login and timestamps and lets you know
if
its an edit insert or delete. Thanks for all your helpfull posts Allen

"Allen Browne" wrote:

You can use an API call to Windows to get the user name (i.e. who is
currently logged in):
http://allenbrowne.com/ser-53code.ht...etworkUserName


  #5  
Old June 24th, 2008, 06:56 PM posted to microsoft.public.access.forms
scott04
external usenet poster
 
Posts: 197
Default Audit Tracking - Users

Yes that is the article

"Allen Browne" wrote:

Feedback appreciated.

I assume you were talking about this article:
Audit Trail - Log changes at the record level
at:
http://allenbrowne.com/AppAudit.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"scott04" wrote in message
...
Allen's code for getting get work user name works lovely. I can say that
i
personally use it and it grabs the login and timestamps and lets you know
if
its an edit insert or delete. Thanks for all your helpfull posts Allen

"Allen Browne" wrote:

You can use an API call to Windows to get the user name (i.e. who is
currently logged in):
http://allenbrowne.com/ser-53code.ht...etworkUserName



 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.