Code Sequencing

M

MWG

Probably a silly question...

I have a popup form being called from a switchboard item. How can I get the
code on the popup form to completely execute before the code on the
switchboard form continues. For example, I want the code sequence to be as
follows: switchboard code -> popup form code -> switchboard code.
Currently, the switchboard code is fully executing even thought the popup
form is waiting for user response.

Any ideas would be greatly appreciated!
 
M

Mark

In the code that opens the popup form, you need to specify it to open as a
Dialog, so the code in the switchboard waits until the popup for is closed:
DoCmd.OpenForm "frmPopupForm", , , , , acDialog
 
E

Eric Sambell

Try changing the modal and popup properties of the popup form to Yes. You
could also change the dialog setting of the openform action.

Eric
 
Top