J
JohnWL
I have a form in Access 2002 on which some controls alter
properties of other controls based on the value of the
data. Ex: If the user selects choice 1 in a combo box, non-
applicable controls are set to invisible. Choice 2 sets
them back to visible.
If the user edits data in an existing record, then clicks
an Undo (Cancel) command button or uses the Escape key,
the form's Undo event triggers. I want code to then run
which also resets the properties of those other controls
as well. But the data in those controls does not get reset
until after the Undo event finishes. Thus, the code is
still reading the edited data, not the original data. No
event I can find is triggered after the form's Undo event,
so I can't place such code anywhere else effectively.
How can I call subroutines that reset the properties of
the other controls after the data in the primary controls
is undone?
properties of other controls based on the value of the
data. Ex: If the user selects choice 1 in a combo box, non-
applicable controls are set to invisible. Choice 2 sets
them back to visible.
If the user edits data in an existing record, then clicks
an Undo (Cancel) command button or uses the Escape key,
the form's Undo event triggers. I want code to then run
which also resets the properties of those other controls
as well. But the data in those controls does not get reset
until after the Undo event finishes. Thus, the code is
still reading the edited data, not the original data. No
event I can find is triggered after the form's Undo event,
so I can't place such code anywhere else effectively.
How can I call subroutines that reset the properties of
the other controls after the data in the primary controls
is undone?