Question : Pause sub, open form, continue sub to update

How to I do this?
1. from a sub routine on Form 1 open Form 2 and pause.
2. After a click on Form 2, set a global variable then close Form 2. ( I know how to do this )
3. After Form 2 has closed continue with sub routine on Form1 where  we update a field with the global variable value.

Answer : Pause sub, open form, continue sub to update

in your codes on sub routine on Form 1 open Form 2 in modal/dialog mode,
this will halt your code in the sub and will resume after you close form 2

     docmd.openform "Form2",,,,,acdialog
Random Solutions  
 
programming4us programming4us