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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change inputmask

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
I have a table that contains a field "Pas" and i set inputmask as password. What is the code to modify the inputmask from password to text?.
 
Go to the table's design view and remove the input mask. ljprodev@yahoo.com
ProDev
MS Access Applications
 
I want to allow some users to do that through a form without going to the table design, like doing this by clicking a button in the form based in this table.
what is the code for this button.
Thanks.
 
This will change the input mask back and forth from "Password" to NO INPUT MASK.

Private Sub cmdButton_Click()

If TextBox.InputMask = "Password" Then
TextBox.InputMask = ""
Else
TextBox.InputMask = "Password"
End If

End Sub

This will change it from "Password" to a text view only.

Private Sub cmdButton_Click()

TextBox.InputMask = ""

End Sub

Hope this helps... B-)
ljprodev@yahoo.com
ProDev
MS Access Applications
 
Hi LonnieJohnson,
Thanks, that is what I want! So happy that you help me solved my problem. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top