>Sergey sorry,
>
>My class that connects to the SQL-Server says 'Login Failed for User João Batista' it's my windows login name, but the user i pass in oApp is 'JoaoBatista', i have SQL-Server authentication, not windows authentication.
>
>Does oApp lose the scope, when it was call outside the form?
>
>João Batista
oApp is just a variable. Its scope depends on how you declare/define it.
--sb--