Hi. Let's just say I have a checkbox named Text1 and a checkbox named Text2. I would like to do this: if Text1 is empty, Text2 = 1 else Text2 = Text1
(thisform.Text1.Value, thisform.Text2.Value)
How cna I do this?
I tried like this:
But it doesn't work. When I run the program, of course that Text2 has value 1. But when I introduce a value (numeric) in Text1, I want like Text2 = Text1 (value)
(thisform.Text1.Value, thisform.Text2.Value)
How cna I do this?
I tried like this:
Code:
if empty(thisform.Text1.Value)
thisform.Text2.value = 1
else
thisform.Text2.value = thisform.Text1.Value
endif
But it doesn't work. When I run the program, of course that Text2 has value 1. But when I introduce a value (numeric) in Text1, I want like Text2 = Text1 (value)