Javelin
The Backpacker
- Local time
- Today, 17:06
- Joined
- Mar 14, 2003
- Messages
- 12
All,
Can someone please help - it's driving me crackers !!!
Basically - I want to be able to track when a record was last modified - So that I can see if a record has not been reviewed within the last 30 days.
So far;
I have created a form, which adopting a great piece of code from this site, automatically creates an audit trail if any data on the form (individual record) is changed.
On this form is a field entitled 'Last_Modified' that automatically updates (with the 'Date ()') every time a change is made.
However - if the form is displaying a record that has not been amended/changed since it was created - this field is blank.
This means that if I run a query based upon the 'Last_Modified' date it would not recognise/identify the risk because there is no data entry - therefore a risk could that has not been modified since it's creation could potentially be unmonitored.
What I want to do is if the 'Last_Modified' field is Blank/empty I want the default data to be taken from a field in a table named 'Date_Raised'.
Do I do this through code? / using Before_Update?
Can someone please help?
Many thanks in advance.
Javelin
Can someone please help - it's driving me crackers !!!
Basically - I want to be able to track when a record was last modified - So that I can see if a record has not been reviewed within the last 30 days.
So far;
I have created a form, which adopting a great piece of code from this site, automatically creates an audit trail if any data on the form (individual record) is changed.
On this form is a field entitled 'Last_Modified' that automatically updates (with the 'Date ()') every time a change is made.
However - if the form is displaying a record that has not been amended/changed since it was created - this field is blank.
This means that if I run a query based upon the 'Last_Modified' date it would not recognise/identify the risk because there is no data entry - therefore a risk could that has not been modified since it's creation could potentially be unmonitored.
What I want to do is if the 'Last_Modified' field is Blank/empty I want the default data to be taken from a field in a table named 'Date_Raised'.
Do I do this through code? / using Before_Update?
Can someone please help?
Many thanks in advance.
Javelin