Perform task after Form_Undo (1 Viewer)

Devon

New member
Local time
Today, 16:04
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?
 

boblarson

Smeghead
Local time
Today, 07:04
Joined
Jan 12, 2001
Messages
32,059
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.
 

Devon

New member
Local time
Today, 16:04
Joined
Apr 12, 2012
Messages
9
Sounds simple enough, thanks!
 

Users who are viewing this thread

Top Bottom