Button visible false (1 Viewer)

georg7

Registered User.
Local time
Today, 00:06
Joined
Sep 3, 2019
Messages
84
Good Morning guys,
I've a form with a Password request. I want to make a button on a other form invisible until someone wrote the Right Password.
I tried it with Forms!frm_all!Befehl23.Visible = false
And an if with Forms!frm_all!Befehl23.Visible = true

may someone can help :)
best regards
Georg

EDIT: The button is called Befehl23 and is on form frm_all
 
Last edited:

June7

AWF VIP
Local time
Yesterday, 23:06
Joined
Mar 9, 2014
Messages
5,471
What happens - error message, wrong result, nothing?

Try using dot instead of ! in front of button name.

Forms!frm_all.Befehl23.Visible = false
 

georg7

Registered User.
Local time
Today, 00:06
Joined
Sep 3, 2019
Messages
84
It Always says that there is no form with that Name, but ist the form Name XD
 

Micron

AWF VIP
Local time
Today, 03:06
Joined
Oct 20, 2018
Messages
3,478
It Always says that there is no form with that Name,
Is the form you're trying to reference open at all? It has to be, otherwise you will get that error. If it is, at least post the entire button click event (and please use code tags </> from menu bar) if you're not ready to post a zipped db copy.
 

georg7

Registered User.
Local time
Today, 00:06
Joined
Sep 3, 2019
Messages
84
Thank you guys for your help! It worked! Appreciate your effort.
Best regards georg
 

Users who are viewing this thread

Top Bottom