I am trying to get a form to act as a dialog box, but the vba which opens the form just carries straight on.
Background: I have a choice of two reports to select from, called rptOriginal and rptNew. The selection form has two command buttons which set a global variable to the required report name, and then the form closes.
What happens: The selection form opens, but the calling sub routine doesn't wait for the variable to be set.
Question: How do I get the calling form to wait for the variable to be set before continuing?
Telephoto
Background: I have a choice of two reports to select from, called rptOriginal and rptNew. The selection form has two command buttons which set a global variable to the required report name, and then the form closes.
What happens: The selection form opens, but the calling sub routine doesn't wait for the variable to be set.
Question: How do I get the calling form to wait for the variable to be set before continuing?
Telephoto