G
Guest
I believe I my problem relates to misunderstanding events and/or their
sequence.
I have a 'LastUpdate' field which I'd like to change to the current
date/time when the 'Status' field value changes. Here's what I've done so
for...
1. Create a macro ('SetStatusValue') to change the 'Status' field from 1 to
5 as dates are added to Action1, Action2...Action5 ([Action1] Is Not Null and
[Action2] Is Null..SetValue = 1). I attached that macro to the form's
current event. This field changes as desired.
2. On the OnChange event for the 'Status' field, I attached
Me.[LastUpdate] = Now
This field does not populate.
I also use the form's BeforeUpdate event to requery the Status field.
I've experimented multiple ways and can't seem to figure out this 'simple'
task. Any help is appreciated.
sequence.
I have a 'LastUpdate' field which I'd like to change to the current
date/time when the 'Status' field value changes. Here's what I've done so
for...
1. Create a macro ('SetStatusValue') to change the 'Status' field from 1 to
5 as dates are added to Action1, Action2...Action5 ([Action1] Is Not Null and
[Action2] Is Null..SetValue = 1). I attached that macro to the form's
current event. This field changes as desired.
2. On the OnChange event for the 'Status' field, I attached
Me.[LastUpdate] = Now
This field does not populate.
I also use the form's BeforeUpdate event to requery the Status field.
I've experimented multiple ways and can't seem to figure out this 'simple'
task. Any help is appreciated.