473,383 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to track edits in a table?

I want to track edits made in table ABC in the past week from today.
Is there a function in Access ( my database is access) that can tell me the date any of the existing/new records in the table have been edited?
Thanks
Jan 8 '09 #1
3 1614
missinglinq
3,532 Expert 2GB
No, you'd have to handle this thru VBA code. Hopefully you're not allowing data entry directly into the table but rather thru a form. You'll need to add a Date/Time field to your underlying table, named something like DateEdited. Place this field on your form. If you don't want it visible to the user, set its Visible Property to No. Now place this code in the form's code module.

For Date only:
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_BeforeUpdate(Cancel As Integer)
  2.   Me.DateEdited = Date
  3. End Sub
For Date and Time
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_BeforeUpdate(Cancel As Integer)
  2.   Me.DateEdited = Now
  3. End Sub
Linq ;0)>
Jan 8 '09 #2
NeoPa
32,556 Expert Mod 16PB
The short answer is that "No - Access doesn't maintain any such level of logging of your changes".

Should you decide that you wish to go to the trouble of implementing this feature yourself, then Linq's post will get you started in the right direction.

Welcome to Bytes!
Jan 8 '09 #3
MindBender77
234 100+
Neopa and Linq are most certainly correct.

It really depends to what extent of tracking you wish to achieve but, you can have Access export log files daily. This is done entirely through vba from a form linked to a table. I have incorporated this with several of my projects. You could view minute to minute actions of your users if you wish.

If you decide to go this route let me know and I will provide a snippet to get you started.

Bender
Jan 9 '09 #4

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

Similar topics

2
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing...
0
by: Jim Heavey | last post by:
Hello, I have a datagrid that I have configured to bind to "table1". I created and "EditItemTemplate" which is also bound to "table1" except for two columns which I bound to "table2" and "table3"...
0
by: Garry Dawkins | last post by:
Form Edits Hello Gang, I have a form thats using MS VB.net in the design window with a unbound field. It appears that the field which is a dropdown needs to be connect to a new table in the...
4
by: | last post by:
Is anyone aware of an elegant method to 'track' changes (additions, deletions, edits) to an online server on my web host...in this case various sub folders in the /IMAGES/ directory... The...
9
by: Marc R. | last post by:
Happy new year everyone, Back from vacation, and here's a new Chalenge for "moi". I got 2 Dataview. 1 for DVsupplierSearch that is bind to a grid 1 for DVSupplierDetails, that is bind to...
4
by: Keith G | last post by:
VS2003 I am using a datagrid on a Windows form. The user has 2 buttons: cancel the current changes (re-loads the dataset) or update (updates the dataset). The problem is that any edits in the...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
2
by: Matt | last post by:
Hi All, I have a form that was given to me to fix, so I do not have a ton of background here but I will do my best. Also, my form design experience is somewhat lacking, so here goes: ...
8
by: BASSPU03 | last post by:
I'm using Access 2003 on a Windows XP O/S. I've made two copies of Form1 so that there're are 3 forms: 1) Form1 2) Form2 3) Form3 Essentially, they all write to the same Table1.
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.