E
ericb
I have a problem declaring a variable.
I declared a variable like this at the top of a module :
Option Compare Database
Dim bntDossier As String
In the same module is a Form_Open sub that will set a value to it. If I
print it with msgbox I can see it is OK
But when I enter the Form_close sub and use msgbox it does not show anything.
How can I declare my variable so all the subs or functions can use it.
And is it possible to declare it so that all the other modules can use the
same variable ?
Thank you for the help
I declared a variable like this at the top of a module :
Option Compare Database
Dim bntDossier As String
In the same module is a Form_Open sub that will set a value to it. If I
print it with msgbox I can see it is OK
But when I enter the Form_close sub and use msgbox it does not show anything.
How can I declare my variable so all the subs or functions can use it.
And is it possible to declare it so that all the other modules can use the
same variable ?
Thank you for the help