Print Page | Close Window

AuditTrail.mdb (intermediate)(97, 2000-2007)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=399
Printed Date: 28 Mar 2024 at 7:26am
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: AuditTrail.mdb (intermediate)(97, 2000-2007)
Posted By: Roger Carlson
Subject: AuditTrail.mdb (intermediate)(97, 2000-2007)
Date Posted: 04 Aug 2008 at 4:03am
Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - find out why here .
 
AuditTrail.mdb
 
This sample illustrates one way to produce a simple audit trail table containing: machine name, login name, user name (access security), record number, field name, original value, new value, and a date/time stamp. It tracks all changes made to a record in either the form or subform. It also tracks when new records are inserted and when records are deleted and the values of the deleted fields. It does not work properly for deleting if Cascade Deletes is set. It will show the deletes from the main form, but not the subform. Code is contained in Module1 and is called from each text box on each form. There are no doubt many improvements that can be made. This is just for illustration purposes. 
For a more complete audit trail appliction, see my sample  http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=398 - AuditTrail2.mdb .
 
Download
Access 97 (58 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/AuditTrail97.zip - AuditTrail97.zip
Access 2000+ DAO (59 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/AuditTrail2k.zip - AuditTrail2k.zip


-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net