I am confused as to what is happening as I have several buttons that worked fine for months. Now all of a sudden, when you click several of them, Access stalls out for 5-10 seconds then closes and restarts. The code is super simple, so I am unsure what could have happened to make them all of a sudden behave this way.
Here is the code behind the latest button to start doing it. Most of the buttons have this variation of code, but not all check permission level (I know that is likely an ugly way of handling it).
Any idea why this would cause Access to crash and restart?
Here is the code behind the latest button to start doing it. Most of the buttons have this variation of code, but not all check permission level (I know that is likely an ugly way of handling it).
Code:
Private Sub OpenUsersBtn_Click()
If Forms!LoginFrm!PermissionLvlTxtbx <> 3 Then
MsgBox "You are not authorized to use this feature"
Exit Sub
Else
DoCmd.OpenForm "UserFrm", acFormDS
End If
End Sub
Any idea why this would cause Access to crash and restart?