Tried as a module and it works; however, it is not recognizing the "Case 2950" because it is popping up the "Else" message. Here's the fn code (below are some screenshots):
Function fnAutoExec()
On Error GoTo AutoExec_Err
DoCmd.OpenForm "frmLogin", acNormal, "", "", , acNormal
Cleanup...