Hello all,
Am having a little trouble. I am not particuarly technically minded and so I am looking for a little help as despite trying a number of things, nothing seems to help. I am trying to use a counter in a password access form so that after a certain quantity of tries, the application automatically closes. I was wondering if anyone would know what I;m doing wrong:
Private Sub CommandButton1_Click()
Dim Count As Integer
Count = 0
If txtPD = "Shutter" And txtUN = "Shutter" Then
UserForm3.Show
UserFormPassword.Hide
Else: Count = Count + 1
txtPD = ""
txtUN = ""
End If
'End Sub
If Count = 3 Then
UserFormPassword.Hide
End If
End Sub
Any help would be very much appreciated!
Thank you,
Patron58
Am having a little trouble. I am not particuarly technically minded and so I am looking for a little help as despite trying a number of things, nothing seems to help. I am trying to use a counter in a password access form so that after a certain quantity of tries, the application automatically closes. I was wondering if anyone would know what I;m doing wrong:
Private Sub CommandButton1_Click()
Dim Count As Integer
Count = 0
If txtPD = "Shutter" And txtUN = "Shutter" Then
UserForm3.Show
UserFormPassword.Hide
Else: Count = Count + 1
txtPD = ""
txtUN = ""
End If
'End Sub
If Count = 3 Then
UserFormPassword.Hide
End If
End Sub
Any help would be very much appreciated!
Thank you,
Patron58