pfm
2017-05-17 10:48:34 UTC
salve
ho una textbox (txtpassword)
con la proprietà maschera input password
non capisco come mai se attivo il controllo keyDown
perdo il valore digitato (diventa null)
Private Sub txtPassword_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then ' 13
Debug.Print txtPassword.Value
cmdOk_Click
End If
End Sub
Private Sub cmdOk_Click()
Debug.Print "txtPassword " & txtPassword.Value
If txtPassword = "xxx" Then
bOkPassword = True
Else
bOkPassword = False
End If
DoCmd.Close
End Sub
ho una textbox (txtpassword)
con la proprietà maschera input password
non capisco come mai se attivo il controllo keyDown
perdo il valore digitato (diventa null)
Private Sub txtPassword_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn Then ' 13
Debug.Print txtPassword.Value
cmdOk_Click
End If
End Sub
Private Sub cmdOk_Click()
Debug.Print "txtPassword " & txtPassword.Value
If txtPassword = "xxx" Then
bOkPassword = True
Else
bOkPassword = False
End If
DoCmd.Close
End Sub