In the 21st century, you use "Property" procedures instead of global variables.
Create a module, call it "modProperties".
In the module:
Private PstrYourString As String
Public Property Get GetYourString() As String
GetYourString = PstrYourString
End Property
Public Property Let LetYourString(ByVal vNewValue As Variant)
PstrYourString = vNewValue
End Property
Technically, you can use the same function name for both the Get and the Let but I find that confusing so I add "Get" or "Let" as part of the name.
In other code you refer to the Property functions, *n*o*t* the variable names.
LetYourString() = "Hi There"
Form![SomeTextBox] = GetYourString()
On the form, SomeTextBox will display "Hi There".
You can also use a "Get" as criteria in a query. This decouples the query from any Form name.
To the future,
RichM