I have a string variable assigned a value in Form1
, but wish to use this variable (and the same value) in another form within the database (e.g. Form2
).
How can this be achieved?
You could create a global variable.
Declare it outside any procedures at the top of Form1
, like this:
Public strYourVariable as String
Now, once you have assigned a value to strYourVariable
, it will be available in other modules and forms.
The global variables will be reset if you: