❔ 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?
![](https://utfs.io/f/166329fa-8cb6-4458-b455-2caa754f082e-1nq2cb.png)
14 Replies
Start your debugger and check, which variable is null
mp.lb_acesso
![](https://utfs.io/f/1df546dc-2dfc-489f-bb21-a1c9465ae151-1nq2cb.png)
Some kind of label?
yeah
How do you set it then?
Not in the designer I suppose?
![fluffyFoxThink](https://cdn.discordapp.com/emojis/895224927773417503.png)
nope
this is basicly
a label on other form
mp is main menu
so MainMenu.lb_acesso
the label is on MainMenu
![](https://utfs.io/f/3fc8dda9-ab02-40cf-85c5-77e7d13970c4-1nq2cb.png)
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.