Solved

Last changed date

Posted on 2001-08-15
5
232 Views
Last Modified: 2010-05-18
Is it possible to have a field in a table that will automatically reflect the date/time that the specific records was last changed, either directly in the table or via a form? This must be updated whenever a record is changed or created.
0
Comment
Question by:LoungeLizard
5 Comments
 
LVL 3

Expert Comment

by:nzjonboy
Comment Utility
you may be forced to do this with code, but I'll keep listening to see if anyone comes up with something

nzjonboy
0
 
LVL 1

Expert Comment

by:TheNextStep
Comment Utility
You can do it on a form.  
Lets call the new field "ChangeLog"
Go to the properties for your form, and click on the event tab
Next click on one of the controls that is bound to the field that you want to track changes for.
On the "AfterUpdate" box, select "Event Procedure", then click on the "..." directly to the right.
Paste this =>  Me![ChangeLog]=Now()
0
 
LVL 2

Author Comment

by:LoungeLizard
Comment Utility
Maybe I expressed myself badly. I want a date/time field that updates itself whenever the record is changed -- whatever the source of the change may be (directly, via query etc.)
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 50 total points
Comment Utility
For that you would need a Stored Procedure.
That's not available in Access.
The only way to get this will be to split the database and to link your tables to a database (like MS SQL) that has this possibility.

Nic;o)
0
 
LVL 2

Author Comment

by:LoungeLizard
Comment Utility
I kinda thought so, thanks.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

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…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

771 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

7 Experts available now in Live!

Get 1:1 Help Now