i have a login screen and want it to fail at 4th password attempt. how do i say to add 1 to the intLoginAttempts?
I currentlry have it as:
Dim intLoginAttempts as Integer
intLoginAttempts = 0
Else
MsgBox "Password Invalid. Please Try Again", vbOKOnly, _
"Invalid Entry!"
Me.txtPassword.SetFocus
'If User Enters incorrect password 3 times database will shutdown
intLoginAttempts = intLoginAttempts(, 1)
If intLoginAttempts > 3 Then
MsgBox "You do not have access to this database.Please contact admin.", _
vbCritical, "Restricted Access!"
Application.Quit
End If
n
End If