dryan said:
Thanks for input. I tried using a function but I don't know where to put it
so that the TABLE recognizes the FUNCTION and the FUNCTION recognizes the GLOBAL
Variable.
A report should be able to use a global variable (in code). This is the same as
a form. If you want to use it in a query or a ControlSource expression then you
need a wrapper function. That is a function whose only purpose is to return the
global variable value.
Public Function GetVariableName() as VariableType
GetVariableName = VariableName
End Function
Once created you can use...
=GetVariableName()
....in a ControlSource expression.