I have a subroutine that 1) I want to open a form and 2) execute some code after the form is closed. Access, being incredibly stupid this way, absolutely insists on executing the code before returning from the form, even though the code occurs after the form open statement. How can I force the code to execute only after returning from the form? In essence, my code looks like this:
docmd.openform “DoSomeWork”
ExecuteThisSubroutine
How can I make it wait to run ExecuteThisSubroutine?