Created a Database and set restrictions for usage.
However I put a Login in page which really is only for me to see when allowed users log in.
Is there any possible way I can set it so that the user has 3 attempts to log in before kicking them out.
At present I have this in AfterUpdate
If Me.UserName = "Russ" Then
Me.ProceedButton.Enabled = True
Else
Me.ProceedButton.Enabled = False
Me.Try=Me.Try + 1
Me.UserName.SetFocus
End If
At present my VBA is pretty limited and hence I do not know how to proceed to get it to register the 3 attempts and close the program.
However I put a Login in page which really is only for me to see when allowed users log in.
Is there any possible way I can set it so that the user has 3 attempts to log in before kicking them out.
At present I have this in AfterUpdate
If Me.UserName = "Russ" Then
Me.ProceedButton.Enabled = True
Else
Me.ProceedButton.Enabled = False
Me.Try=Me.Try + 1
Me.UserName.SetFocus
End If
At present my VBA is pretty limited and hence I do not know how to proceed to get it to register the 3 attempts and close the program.