Snowflake68
Registered User.
- Local time
- Today, 18:18
- Joined
- May 28, 2014
- Messages
- 464
Is there a way of updating the 'LastModified' date of the current record only if the record is changed?
I have the following code on the forms 'BeforeUpdate' event which updates the current record as soon as the form is opened BUT, I only want to run the update if the record is edited. I could set the code to run on the 'After Update' event of every control on the form but think this is a bit overkill.
I have the following code on the forms 'BeforeUpdate' event which updates the current record as soon as the form is opened BUT, I only want to run the update if the record is edited. I could set the code to run on the 'After Update' event of every control on the form but think this is a bit overkill.
Code:
[LastModified] = Format(Now(), "dd/mm/yyyy hh:nn")