
Referencing Global Variable from a variable
I have a module containing a number of Public string
variables. If I refer directly to them, there is no
problem. ie.
offno = "001"
I would like to know if there is any way to refer to them
with a variable. ie
variablename = "offno"
something.something.(variablename) = "001".
I have made it work by using a case statement. ie.
Select Case variablename
Case "offno"
offno = "001"
etc.
This is not what I am looking for. It seems that there
should be a way to do it with that one line. If there is,
I would just like to know how to do it.
(I have referred to textboxes on a form with:
Forms!FormName.Controls.(textboxname).Visible = True
It just seems like there should be something similar for
global variables in a module.