There are ways to pass parameters, but more detail will be required in order for us to determine how any of them would apply for you. Please tell us more about what you are trying to do.
I have declared a public variable thus :-
############################################
Public MasonicOrder as integerMasonicOrder=1 @ The default value
############################################
In Module 1 of my VBA for Access.
Can I type :-
#############################################
[MasonicOrder]
#########################################
In the = field of a query to create a parameter query and would the query use the value of the global variable to set select matching records