Set text box to display text as password in Access

When you create a log in form, you actually don't want someone understanding your password. To tackle this problem, you need to set the Password text box to display as asterisk sign. To do so, you have two ways:
1. Using Property Sheet
Suppose you have created a log in form that consists of two text boxes: user name and password.
- Click the Password text box
- Click Property Sheet, in Tools group, on the Design tab
- Click Data tab
- Click three dot button in front of the Input Mask property
The Input Mask Wizard dialog box appears:
- Click Password in the Input Mask column
- Click Next --> Click Finish
2. Using VBA code
Suppose you have created a log in form that consists of two text boxes: user name and password.
- Write the following VBA code:

Private Sub Form_Load()
Text0.InputMask = "Password"
End Sub

Posted by: Lavy | post date: 01-22-2013 | Subject: MS Access




    This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
    C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.