I have two forms which contains next information:
Form 1 is mainmenu and it contains button named button1, Form 2 contains keyfield and some other fields that are not important.
What i want is that when i open the form 1 then it opens form 2 and go to the keyfield and check if this is empty or null then if it´s empty or null then form1 button1.enabled=false else button1.enabled=true.
Now i done that form 1 open event i have opened form 2 and i have tryied to use if else clause but i haven´t got it work.
Form 1 is mainmenu and it contains button named button1, Form 2 contains keyfield and some other fields that are not important.
What i want is that when i open the form 1 then it opens form 2 and go to the keyfield and check if this is empty or null then if it´s empty or null then form1 button1.enabled=false else button1.enabled=true.
Now i done that form 1 open event i have opened form 2 and i have tryied to use if else clause but i haven´t got it work.