Your second form is most likely in a different unit and there for has no access to it.
Place that variable in a unit that is shared among all others. That unit would be in the USES list of other units that needs access to it.
Normally I create a unit named common or something like that and place all those values in that unit and then include that unit in other units of the USES list where I need access to it.