If UserName <> "user" Or Password <> "pass" Then
DoCmd.Quit
Else
If Not IsNull(Open) Then
MsgBox "You can not access this Database while another person is using it, please try again"
DoCmd.Quit
Else
Forms!frmLogin!Open = "1"
DoCmd.OpenForm "frmLogin", , , , , acHidden
DoCmd.OpenForm "Switchboard"
End If
End If