binksmatthew
Registered User.
- Local time
- Today, 06:08
- Joined
- Mar 3, 2007
- Messages
- 21
i have designed a form that allows users to log in. the username and password section works well. however, i also added a code that should make the application shut down after a user gets their password wrong three times but it is not working at all.
below is my coding:
If User Enters incorrect password 3 times database will shutdown
intLogonAttempts = intLogonAttempts + 1
If intLogonAttempts > 3 Then
MsgBox "You do not have access to this database. Please contact your system administrator.", vbCritical, "Restricted Access!"
Application.Quit
End If
below is my coding:
If User Enters incorrect password 3 times database will shutdown
intLogonAttempts = intLogonAttempts + 1
If intLogonAttempts > 3 Then
MsgBox "You do not have access to this database. Please contact your system administrator.", vbCritical, "Restricted Access!"
Application.Quit
End If