Carry over variables in code after form has closed

B

Brett Kinross

Hello everyone and thanks in advance for your assistance.
I have a form that pops up in the middle of code (set to pop up, modal and
opened acDialog) as a type of custom input box. My problem is how to I get
the variables to carry over in the code once the form has closed? Currently
I've set them to Public variables but they are null as soon as the form
closes.
Thanks once again
Brett
 
O

Ofer

Declare the variable as a global variable in the decleration section of one
of the modules, and not under the form.
 
B

Brett Kinross

Thanks - worked a treat.

Ofer said:
Declare the variable as a global variable in the decleration section of one
of the modules, and not under the form.
 
Top