>Hi,
> Nice to meet you. What is your company name?
> Yes, I tried to DO FORM frmLogin in frmMain before, but still the same result....
It can work, but you may need to change a few things. As said, launch the login form as a child from the Main form, but not until late, the form Activate. Then if the login is bad, Release the Child form, and do the CLEAR EVENTS from the Main form. I do approximately this, and it works fine.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.