Code Sequencing

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

Guest

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!
 
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
 
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
 
Back
Top