Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Access VBA show a textbox password for 4 seconds

Hi. I tried to show the password in a text box for 4 seconds with the following Access VBA code but it doesn't work

Private Sub btnEye_Click()

      txtPW.InputMask = ""
      
      PauseApp (4)

      txtPW.InputMask = "Password"
      
End Sub

Public Sub PauseApp(PauseInSeconds As Single)
    
    Dim sngStart As Single
    
    sngStart = Timer
    
    Do While sngStart + PauseInSeconds > Timer
    Loop
    
End Sub

Open in new window

Avatar of Noah
Noah
Flag of Singapore image

Hi there! :)

Just to confirm, the password is already hidden by default using the Input Mask property?
ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Thanks everyone for the help