Solved

Audit log in Access database 2007

Posted on 2010-09-24
7
670 Views
Last Modified: 2013-11-27
Hello,

How to track changes made to an record in Access Database using VB.Net Windows application

I would need the below information stored in a different table

LogId- Unique
Item - Change made for this "Item"
Field Affected - Name of the field that has been changed
Old Value - Value before the change
New Value - Value after the change
User - Who made the modification
Date -  When was the change made

Any suggestion or ideas, please?

Thank you



           
0
Comment
Question by:angel7170
  • 4
  • 2
7 Comments
 
LVL 33

Expert Comment

by:jppinto
ID: 33755350
You just need to create the fields on the tables you want to record this information and put the necessary lines of code to write to this fields on each record, each time the record is changed.

jppinto
0
 
LVL 33

Expert Comment

by:jppinto
ID: 33755359
"put the necessary lines of codes" ...on your VB application to write to the database.
0
 
LVL 33

Expert Comment

by:jppinto
ID: 33755366
You can make a specific table to record the log information but it's easier to read if you put the information next to the record.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:angel7170
ID: 33755369
Thanks

Any suggestion on how to write the code?
0
 
LVL 33

Accepted Solution

by:
jppinto earned 250 total points
ID: 33755419
How are you writing to your database? Just need to add the fields that you want to fill to the code you use to write to the record and fill it with the information that you want to store. It's a bit hard to give you a sample code for this without knowing how are you writing to your Access database tables...
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 250 total points
ID: 33755445
see this link
Creating an Audit Log
http://allenbrowne.com/AppAudit.html
0
 

Author Closing Comment

by:angel7170
ID: 33906195
Your suggesstions is helphul..
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now