Perform task after Form_Undo

Devon

New member
Local time
Today, 07:45
Joined
Apr 12, 2012
Messages
9
On a form that displays, let's say, "customer" details a combobox is used to let the user choose gender. Once a gender is chosen, an image shows either a male icon or a female icon. The form has a table as a record source.

If a user changes the gender but doesn't leave the combobox but presses the Escape key to cancel the update, the combobox naturally shows the old value. But the image isn't changed, so it now shows the incorrect icon.

Can this problem be solved by simply calling the undo event from within the undo event itself?
 
Just set the correct icon in the form's undo event. Don't worry about trying to call anything else. So if the undo is done, the icon will be changed.
 
Sounds simple enough, thanks!
 

Users who are viewing this thread

Back
Top Bottom