>>>Is Model form creating problem?
>>
>>Is the modal form still active when the code runs?
>
>Yes.
>
>Login is a model form. It calls Menu.prg
>
>But oMenu is a Public variable
I don't think it's right place to setup menu. You should do it after login is verified and the modal login form is closed.
--sb--