ACC1x: How to Create a Password Text Box

Last reviewed: April 2, 1997
Article ID: Q88650
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SUMMARY

Some applications require password protection and should provide a dialog box at startup which prompts the user for a password. For security purposes, this prompt should not show the characters that the user is typing, but should give the user some idea of how many characters have been typed so that the user does not lose track of what part of the password is being typed. This article describes how you can create a password text box in Microsoft Access version 1.x.

In Microsoft Access version 2.0, you can use input masks for typing data into a field or control. There is an input mask specifically for password entry. For more information, search for "input masks," using the Microsoft Access 2.0 Help menu.

MORE INFORMATION

To create a password text box:

  1. Create a form and open it in Design view.

  2. Add a text box and select it so that it has the focus.

  3. In the toolbar, drop down the list of fonts located directly to the right of the Paint Pallette toolbar button.

  4. From the list, choose Courier.

  5. In the toolbar, drop down the list of font sizes located directly to the right of the list of fonts from which you just made a selection.

  6. From the list, choose the value 10.

  7. From the palette window, click on the color White for both the Fill row and Text row of colors.

  8. Save the form and switch to Form view.

When you type characters into the password text box, notice that they do not appear, but the cursor is present. The Courier font assigned to the text box makes cursor movement and position clearly identifiable so that the user has an idea of how many characters have been typed.

REFERENCES

For more information about the InputMask property, search for "text box: for entering passwords," and then "InputMask Property," using the Microsoft Access Help menu.

-or-

Search for "passwords: text box for entering," and then "InputMask Property," using the Microsoft Access Help menu.


Keywords : kbusage ScrtOthr
Version : 1.0 1.1
Platform : WINDOWS
Hardware : x86
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.