Solved

How to find when record was entered

Posted on 2014-01-22
1
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
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…
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.

733 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