stevekos07
Registered User.
- Local time
- Today, 08:15
- Joined
- Jul 26, 2015
- Messages
- 174
I can't seem to get this right! I have a login form frmLogin, with a textbox txtUserName. In the AfterUpdate event of the textbox I have a couple of lines of code. Firstly to open a hidden form with a single textbox that I want to retain the User Name from the Login form, and the second to create a temp variable "test" that will store in the hidden form.
Private Sub txtUserName_AfterUpdate()
DoCmd.OpenForm "frmUserLoginHidden", acNormal, , , , acHidden
TempVars.Add "test", Me.txtUserName.value
End Sub
I seem to have trouble calling the variable as the default in the hidden form when it loads.
I am new to temp variables (which is probably obvious!)
Can someone help?
Private Sub txtUserName_AfterUpdate()
DoCmd.OpenForm "frmUserLoginHidden", acNormal, , , , acHidden
TempVars.Add "test", Me.txtUserName.value
End Sub
I seem to have trouble calling the variable as the default in the hidden form when it loads.
I am new to temp variables (which is probably obvious!)
Can someone help?