B bconner Registered User. Local time Today, 17:13 Joined Dec 22, 2008 Messages 183 Feb 17, 2011 #1 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?
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?
DCrake Remembered Local time Today, 23:13 Joined Jun 8, 2005 Messages 8,620 Feb 17, 2011 #2 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
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
B bconner Registered User. Local time Today, 17:13 Joined Dec 22, 2008 Messages 183 Feb 17, 2011 #3 Thanks DCrake that worked!