Pause running code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there.

Im sure this has been asked before but I can't find it. I am running a while
wend loop which opens a form, which then opens another. I need that while
loop to pause until the user presses a button on the second form opened. How
can I do this?

Thanks Simeon.
 
Hi there.

Im sure this has been asked before but I can't find it. I am running a while
wend loop which opens a form, which then opens another. I need that while
loop to pause until the user presses a button on the second form opened.How
can I do this?

Thanks Simeon.

Open the second form as a modal pop-up window. It might not be the
only way, but it's certainly the easiest way to do it.
 
Simeon said:
Hi there.

Im sure this has been asked before but I can't find it. I am running
a while wend loop which opens a form, which then opens another. I
need that while loop to pause until the user presses a button on the
second form opened. How can I do this?

Thanks Simeon.

Open that form with the acDialog option of the OpenForm method. Your code will
pause until that form is then closed or made hidden.
 
Back
Top