Hello,
I have a module which inconsistently is generating an error message that pops up and states "overflow".
Any assistance is appreciated.
Code:
Public Function EmBypass()
Dim strAdminPWord As String
Dim strAdminOride As String
strAdminPWord = InputBoxDK("Enter Authorization Code", "Emergency Bypass")
If strAdminPWord = DLookup("Pwd", "Tbl_Log_In_Data", "EmpNumber = 0001") Then
DoCmd.OpenForm "frmDemo"
[Forms]![frmDemo]![chkLogOutAllUsers] = False
[Forms]![frmDemo]![chkShowMe] = False
DoCmd.Close acForm, "frmDemo"
MsgBox "Shutdown Aborted!", vbOKOnly, "Bypass Successful"
strAdminOride = InputBoxDK("If you would like be taken to the administrative controller type 'Admin'." & vbCrLf & _
"If you would like to return to the Hub type 'Hub'." & vbCrLf & _
"If you would like to remain on your current screen, click Cancel.", "Input Required")
Else
MsgBox ("You entered an invalid password")
' Exit Sub
End If
If strAdminOride = "" Then
MsgBox "Invalid Password!"
ElseIf strAdminOride = "admin" Then
DoCmd.OpenForm "frmDemo"
ElseIf strAdminOride = "hub" Then
DoCmd.OpenForm "frmSwitchboard"
End If
End Function