PC Review


Reply
Thread Tools Rate Thread

How to create a log of when a user made a add/modify/delete

 
 
ChicagoPete
Guest
Posts: n/a
 
      25th Jul 2008
In Access 2007 I am looking for a way to store in a table the user name, date
and time of when this person made a add/modify/delete action to a record. I'm
thinking of hidden fields that can be used by admin to audit any funny
business in my db.

How can you capture the MS Windows user name and date/time of a
add/modify/delete event?

Thanks,
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      26th Jul 2008
On Fri, 25 Jul 2008 11:46:35 -0700, ChicagoPete
<(E-Mail Removed)> wrote:

The username can be captured using code like this:
http://www.mvps.org/access/api/api0008.htm
And bookmark that site!

The datetime is captured with the Now() function in VBA.

You need to write your code in several form-level events. AfterInsert,
AfterUpdate, and Delete come to mind.

-Tom.
Microsoft Access MVP



>In Access 2007 I am looking for a way to store in a table the user name, date
>and time of when this person made a add/modify/delete action to a record. I'm
>thinking of hidden fields that can be used by admin to audit any funny
>business in my db.
>
>How can you capture the MS Windows user name and date/time of a
>add/modify/delete event?
>
>Thanks,

 
Reply With Quote
 
Pete D.
Guest
Posts: n/a
 
      26th Jul 2008
Might check this out
http://www.allenbrowne.com/AppAudit.html

"ChicagoPete" <(E-Mail Removed)> wrote in message
news:F1FCCD5A-BF6A-4321-B541-(E-Mail Removed)...
> In Access 2007 I am looking for a way to store in a table the user name,
> date
> and time of when this person made a add/modify/delete action to a record.
> I'm
> thinking of hidden fields that can be used by admin to audit any funny
> business in my db.
>
> How can you capture the MS Windows user name and date/time of a
> add/modify/delete event?
>
> Thanks,



 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory That Allows Create, Delete & Read, But Not Modify? (PeteCresswell) Windows XP General 3 10th Aug 2006 06:13 PM
Delegating right to create, delete, modify GPOs across forests Jason Edelen Microsoft Windows 2000 Group Policy 0 20th Jun 2005 11:21 PM
Create but no modify or delete Marc Friedman Microsoft Windows 2000 File System 0 6th Jul 2004 07:34 PM
suggestions on: Create/delete/modify element(s) for server side from Javascript/client-side? Shaul Feldman Microsoft ASP .NET 0 16th Apr 2004 10:55 PM
Create/Modify User Accounts Marcello Windows XP Security 0 28th Sep 2003 04:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:27 AM.