❔ Login Sql error
This error displays when i click on my button "entrar" to login with my account can anyone tell me what am i doing wrong?
14 Replies
Start your debugger and check, which variable is null
mp.lb_acesso
Some kind of label?
yeah
How do you set it then? Not in the designer I suppose?
nope
this is basicly
a label on other form
mp is main menu
so MainMenu.lb_acesso
the label is on MainMenu
this is the form that will load after the login
and the label changes to the number i have on my table utilizadores
on the column nivelUtilizador
Yeah, that's a bit weird. Accessing controls across forms is usually avoided.
its just a label i mean
just to show the user
what its his acess level
Then you'll need to find out, where this label becomes null. I can only guess, that it unloads or something while you are on the other form
i dont see what would unload it
maybe it wasnt even initialized in the first place
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.