Store Value of Text Box on Form after Form is Closed

bconner

Registered User.
Local time
Today, 17:13
Joined
Dec 22, 2008
Messages
183
I have a Login form and I would like to store the login in a variable for use on another form how would I go about doing this?
 
If you create a Public Variable in a standard module first.

Code:
Public StrUserName As String
Then before you close the login form you pass the name of the user to this variable.
Code:
StrUserName = Me.TxtUserName
Then when you open up the second form

Code:
Me.Username = StrUserName
 
Thanks DCrake that worked!
 

Users who are viewing this thread

Back
Top Bottom