Pausing Code to Call Another Form

Pausing Code to Call Another Form

I have a form with a block of code that hides the form and then calls another form. This other form accepts input, saves it to a table and then returns to the block of code that called it, which should then show the initial form.

Problem is the code doesn’t wait for the called form to be completed. The code hides the form, calls the new form, and then shows the initial form, which is now on top of the called form.

How do I pause the block of code until I return from the called form?

To solve your problem, make the second form modal.


Share the Post: