I have asked this question before and I got the answer but now there is an extension in User's requirement.
Here is the issue.
On a form there is a timestamp field, which saves the time when the record is completely entered.
I have this code written because user wants to refresh the time when he is done with entering record.
Comments is the another textbox on the same form.
Now if user logs in next day and want to edit a record that is entered today, the time in the timestamp field should not change.
In my case due to the code written above it refreshes the timestamp field with current time.
How can I stop refreshing the timestamp field when user is editing?
The time can not change if they go back and edit a record. It has to remain as it was when the record was added...
Please help!!
Here is the issue.
On a form there is a timestamp field, which saves the time when the record is completely entered.
I have this code written because user wants to refresh the time when he is done with entering record.
Code:
Private Sub Comments_AfterUpdate() Me.Text42.Value = Format(Now(), "Medium Time") End Sub
Now if user logs in next day and want to edit a record that is entered today, the time in the timestamp field should not change.
In my case due to the code written above it refreshes the timestamp field with current time.
How can I stop refreshing the timestamp field when user is editing?
The time can not change if they go back and edit a record. It has to remain as it was when the record was added...
Please help!!
Comment