I have an application with multiple forms. What I want to do is share the value of the variables between forms, however the variable is not in a text box or other object. Is this possible?
for example, I declare username a global variable on one form. when a second form opens, i don't want to repeat the environ, i just want to get the value from the other form, which is still open.
I tried the code below, but it is looking for a text box,etc.
Private Sub Command0_Click()
Dim Mike As String
Mike = Forms!QVLog!UserName
QVLog is the form with the value, and Username is the variable in memory.
Any suggestions?
thank you
for example, I declare username a global variable on one form. when a second form opens, i don't want to repeat the environ, i just want to get the value from the other form, which is still open.
I tried the code below, but it is looking for a text box,etc.
Private Sub Command0_Click()
Dim Mike As String
Mike = Forms!QVLog!UserName
QVLog is the form with the value, and Username is the variable in memory.
Any suggestions?
thank you