G
Guest
I have the following code on the open event of my switchboard and it makes
the vbe screen blink and act strange. I've had to go to a nested if but this
just doesn't look efficient. Any suggestions? I've tried several formats
for the first line but none have worked. Thanks for the help
Problem Code:
If fOSUserName <> 953126 or <>416503 Then
DoCmd.OpenForm "frmInactiveShutDown", , , , , acHidden
End If
Code that is working:
If fOSUserName <> 953126 Then
If fOSUserName <> 416503 Then
DoCmd.OpenForm "frmInactiveShutDown", , , , , acHidden
End If
End If
the vbe screen blink and act strange. I've had to go to a nested if but this
just doesn't look efficient. Any suggestions? I've tried several formats
for the first line but none have worked. Thanks for the help
Problem Code:
If fOSUserName <> 953126 or <>416503 Then
DoCmd.OpenForm "frmInactiveShutDown", , , , , acHidden
End If
Code that is working:
If fOSUserName <> 953126 Then
If fOSUserName <> 416503 Then
DoCmd.OpenForm "frmInactiveShutDown", , , , , acHidden
End If
End If