frmregistration is the form that is closing and frmLogin is opening again, or rather made visible
Code: Select all
Forms!frmLogin.SetFocus
Forms!frmLogin!txtUserID.SetFocus
Code: Select all
Forms!frmLogin.SetFocus
Forms!frmLogin!txtUserID.SetFocus