Solved

How to find when record was entered

Posted on 2014-01-22
1
286 Views
Last Modified: 2014-01-23
Can you find somehow, in Access, when the records in fields are entered or updated?  I am trying to retrieve records from Crystal Reports that were only updated or entered within a week.  In other words, I don't want to select records that were not updated not entered within a week.  If Access keeps the data entry dates, I may be able to use it in Crystal.  Does anybody have any ideas?  Thank you in advance.
0
Comment
Question by:kg6lfz
1 Comment
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 350 total points
ID: 39800606
Access doesn't track this sort of information.

If you're using Access 2010, you can create Data Macros that can fire when data is inserted or updated into your tables.

If you're using anything else, then you would have to do this at the form level, using something like an "audit trail". Essentially, you create audit tables, and then write to those tables anytime a record is added, updated or deleted through your forms. This works as long as data is ALWAYS managed through forms. If you allow users to interact directly with tables or queries, then you can't use these methods.

The most rudimentary of this approach would be to add a field named Last_Updated to your tables, with a Datatype of Date. Then, in your forms, you could run code in the Form's AfterUpdate field to "stamp" the record with the current date/time.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…

770 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