Passing information between Forms and subroutines

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

Guest

I want to open a form via a subroutine, the user then enters information via
textboxes and optionbuttons and then the subroutine can use the information
entered in the textboxes and optionbuttons.

I forget how to pass the textbox and optionbutton info to the subroutine.
(Brainlock)

Thanks,
Mark
 
Mark said:
I want to open a form via a subroutine, the user then enters
information via textboxes and optionbuttons and then the subroutine
can use the information entered in the textboxes and optionbuttons.

I forget how to pass the textbox and optionbutton info to the
subroutine. (Brainlock)

Thanks,
Mark

Open the form with the acDialog argument. That will pause your calling code
until the form is either closed or hidden. Have the button that would
ordinarily close the form (usally an OK button) hide it instead. Then your
calling code can continue, pull the values from the form, and then close it.
 
Back
Top