Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Inputmask on an Inputbox

Status
Not open for further replies.

Centauri117

Programmer
Jul 9, 2003
5
US
I wrote some code to password protect a button on my database that locks/unlocks textboxes. What I want to happen now is that when a person types in the password, I'd like to have the password type in asteriks(*) instead of displaying what their password is. It is easy to do on a textbox but an inputbox is giving me trouble because I can't figure out the visual basic code behind it. I would think it would go somewhere in this line of my existing code but nothing I do with it will work:

Password = InputBox("Please Enter Password", "Password", Password)

If you have any suggestions, I'd appreciate it. Thanks!

~Jay~
 
Don't think this can be done with InputBox. You need to create a small form with a password-masked text box for data entry and a couple of command buttons (OK and Cancel). With this approach, you can mimic the InputBox but allow the password to be asterisked out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top