By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,985 Members | 2,884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,985 IT Pros & Developers. It's quick & easy.

MS ACCESS Audit Trail

P: 1
My code works, however, if a value that is already in the database is deleted, the change is not logged in the audit trail. I know it is my code (see below), please modify to also include already entered values that are deleted (e.g., Oldvalue is not null but is changed to null):

If TypeOf ctlC Is TextBox Or TypeOf ctlC Is ComboBox Or TypeOf ctlC Is OptionGroup Then
If ctlC.Value <> ctlC.OldValue Or IsNull(ctlC.OldValue) Then
If Not IsNull(ctlC.Value) Then
varAfter = ctlC.Value

Thanks,
Carla
Sep 11 '07 #1
Share this Question
Share on Google+
2 Replies


puppydogbuddy
Expert 100+
P: 1,923
My code works, however, if a value that is already in the database is deleted, the change is not logged in the audit trail. I know it is my code (see below), please modify to also include already entered values that are deleted (e.g., Oldvalue is not null but is changed to null):

If TypeOf ctlC Is TextBox Or TypeOf ctlC Is ComboBox Or TypeOf ctlC Is OptionGroup Then
If ctlC.Value <> ctlC.OldValue Or IsNull(ctlC.OldValue) Then
If Not IsNull(ctlC.Value) Then
varAfter = ctlC.Value

Thanks,
Carla
See code recommended by microsoft at this link:
http://support.microsoft.com/kb/197592
Nov 28 '07 #2

P: 42
Here is another approach to change tracking, from my blog:

Tracking changes in Access
Nov 28 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.