Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - AuditTrail2.mdb (advanced) (97, 2000-2007)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

>
Want a good read? Try The Summer of His Life (available on Amazon!)

AuditTrail2.mdb (advanced) (97, 2000-2007)

 Post Reply Post Reply
Author
Message
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP


Joined: 20 Feb 2008
Status: Offline
Points: 261
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: AuditTrail2.mdb (advanced) (97, 2000-2007)
    Posted: 04 Aug 2008 at 3:55am
Please consider donating $1 per sample downloaded, find out why here.
 
AuditTrail2.mdb
 
This sample is a more complete version of AuditTrail.mdb.

The main problem with the previous AuditTrail.mdb is that if the user cancels a record after making some changes, it still records the actions. To work around this, AuditTrail2.mdb writes the values to a temporary table and only when the record is committed, is it written to the Audit table. An additional feature of this version, is the use of a separate database for holding the AuditTable and it also uses a temporary database for the temporary table. This is to reduce database bloat. AuditTable.mdb (the file that holds the AuditTable) is re-linked each time the application is opened, and AuditTemp.mdb is recreated each time the application is opened.

The main problem with this application is that if multiple records are deleted in the subform, only one of them will be recorded. I see no way around this. My conclusion is that the only way to insure absolutely accurate audit trails is to use unbound forms. 

Download
Access 97 (101 KB):
AuditTrail2_97.zip
Access 2000+ (106 KB): AuditTrail2-2k.zip

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links
>
Want a good read? Try The Summer of His Life (available on Amazon!)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.