johannaellamay
Registered User.
- Local time
- Today, 21:59
- Joined
- Jul 19, 2014
- Messages
- 190
Hi! I have a Main form and a Login form. When the user opens the database, the Login form opens. Text boxes for username and password are unbound and connected to a table that stores authorized usernames and passwords. When the username and password are correct, the Login form is set to Visible = False. Then the Main form opens. The Main form has a "hyperlinked" textbox with the following expression:
which shows the username entered in the Login form. When the user clicks the textbox, the Main form's visibility is set to False and the Login form's visibility is set to True. But it's still showing the data entered initially upon login.
What I want is that when Login form is reopened, the textboxes for username and password should be cleared. How do I do that?
Code:
=[Forms]![f_Login]![txtUserName]
What I want is that when Login form is reopened, the textboxes for username and password should be cleared. How do I do that?