Pausing Execution

G

grep

I'd like to have a button on one form open another form, and wait until
that second form is closed before continuing its own execution. How
might I do that?

grep
 
S

Sandra Daigle

Use the acDialog option of the Windowmode parameter of the openform
command. This will suspend the code until the opened form is either
*hidden* or *closed*.

docmd.OpenForm "frmMyForm",,,,,acDialog
 
R

Ron Weiner

Grep

Open the form Modaly as in:

DoCmd.OpenForm "YourFormName",,,,,acDialog

The code in the caller will pause till the form it opened has been closed

Ron W
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top