The Form_Undo event runs before changes to the record are undone. I need code to run after. I found a neat trick here:
Access 2007 form: event AFTER undo - Stack Overflow
Unfortunately, the code doesn't work for me. The value of the afterUpdate variable is not sustained between the two subprocedures. I confirmed this hypothesis in two ways:
My only guess is that they did not test their code and there is a mistake somewhere. Thoughts?
Access 2007 form: event AFTER undo - Stack Overflow
Unfortunately, the code doesn't work for me. The value of the afterUpdate variable is not sustained between the two subprocedures. I confirmed this hypothesis in two ways:
- When I removed the If-statement from the Form_Timer event, retaining the code I wanted to run after the Undo event, it worked fine.
- I added MsgBox afterUndo to the Form_Timer event and the message box pops up blank.
My only guess is that they did not test their code and there is a mistake somewhere. Thoughts?