Private Sub Form_Open(Cancel As Integer)
On Error GoTo ErrFO
If CurrentUser()<> "Mitch" Then
MsgBox "Permission denied.", vbCritical, "Security Check."
Cancel = True
End If
ExitFO:
Exit Sub
ErrFO:
MsgBox Err.Description, vbInformation, "Form Open Error."
Resume ExitFO
End Sub
On Error GoTo ErrFO
If CurrentUser()<> "Mitch" Then
MsgBox "Permission denied.", vbCritical, "Security Check."
Cancel = True
End If
ExitFO:
Exit Sub
ErrFO:
MsgBox Err.Description, vbInformation, "Form Open Error."
Resume ExitFO
End Sub