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.
 

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

Back
Top