HDI: from module, open form, pass value back into module?

C

C Hayes

baffled on this one, can anyone help?

in code

I'm in the module I open a form acdialog mode.

a simple form with a list box and an 'ok' button.

I can get the open args to fill the list box with my values from my module.

I want the form to pass the list box selected value back to the module on
the 'ok' click event and then close.
 
C

C Hayes

I think I figured it out.

modular level public variable in my module

clear the value before opening the form in dialog mode

set the value from the click event of the command button on the form and a
docmd.close

pass the modular value to a local variable.
 

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

Top