It's easier to declare the global variable in a module, not in a form.
If for some reason, though, you feel you must declare it in the form, you
need to refer to the form as well as the variable to use it elsewhere. If
you've declared a variable gstrValue in form frmPublicVariable, you'd refer
to it as Form_frmPublicVariable.gstrValue
It's easier to declare the global variable in a module, not in a form.
If for some reason, though, you feel you must declare it in the form, you
need to refer to the form as well as the variable to use it elsewhere. If
you've declared a variable gstrValue in form frmPublicVariable, you'd
refer to it as Form_frmPublicVariable.gstrValue
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.