The doc_Man, this code: SetFormSecurity Me, Forms!LoginForm!txtLogin, can work if my login form is always open right?. When the login successful, the form will automatically close and go to navigation(Switchboard) which is a drilldown menu like this: