Solved

How to find when record was entered

Posted on 2014-01-22
1
284 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

706 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

13 Experts available now in Live!

Get 1:1 Help Now