-
global variables
I have a form that when the user logs in a text box call "AccessLevel" is autofilled with the users access level, this box is uneditable by the user, what i want to do is take the text from the accesslevel box and use it on the main menu form that opens when the user logs in. i can't work out how this is done, i know i have to assign a global variable but am unsure of how to go about this.
any help will be most greatful
Chris
-
Re: global variables
Welcome to the forums. :wave:
Add a module to your VBA project.
In the module, in the declarations section, put something like:
Public strAccessLevel As String
When the form opens, assign the contents of your access level textbox to this string, and because it is public, it can be used through the entire course of your project.