Hi all,
can anyone please tell me how I can create a variable that can be used by all forms.
Thank you very much!!
Hi all,
can anyone please tell me how I can create a variable that can be used by all forms.
Thank you very much!!
In a module (I use modGLOBAL) , create a GLOBAL variable:
PUBLIC gsUser as string
Another option is use of TempVars
See here for more http://blogs.office.com/2010/09/27/p...2007-and-2010/
Ranman im not to good at vba so what ur saying is i can create a module and write
then i am able to use the variable gsUser in everyform?Code:PUBLIC gsUser as string
That is the way. Be careful not to try and use it twice simultaneously.
Just before using it
gsUser = ""
And just after finishing
gsUser = ""