I’m doing some contract work on a DB that uses alot of globabal variables, which have gotten sort of unwieldy as the application has grown. Anyway, I’m in a situation where I need to get the value for a specific global variable, but which variable I need to look at depends on the value of control on a form. Actually, the global variable name is a concatenation of a base name plus the control value. Right now, we have to do something like a Select..Case(or IF statements) to get the value, something like this:
Select Case myControl
Case 1
temp = gintField1
Case 2
temp = gintField2
… etc.
End Select
Is there a way to reference a global variable using a string name such as you can do with a form, like in Forms(“myform”)? I tried to use Eval(), but Access didn’t seem to like that.