Z
zSplash
I am trying to create a form to get input. I have a single optionGroup with
2 option buttons in it. There are 3 related textboxes. If opt1.value=true,
then tbx2 and tbx3 are not used; if opt2.value is true, then tbx1 is not
used. The trouble is, when I try to code that, I get an error (#2427 - "You
entered an expression that has no value."). What's up - why does
opt2.value=true generate the error? Here's my code:
If opt2.Value = True Then
tbx2.BackColor = "16777215"
tbx3.BackColor = "16777215"
tbx1.BackColor = "-2147483633"
Else
tbx2.BackColor = "-2147483633"
tbx3.BackColor = "-2147483633"
tbx1 = "16777215"
End If
TIA
2 option buttons in it. There are 3 related textboxes. If opt1.value=true,
then tbx2 and tbx3 are not used; if opt2.value is true, then tbx1 is not
used. The trouble is, when I try to code that, I get an error (#2427 - "You
entered an expression that has no value."). What's up - why does
opt2.value=true generate the error? Here's my code:
If opt2.Value = True Then
tbx2.BackColor = "16777215"
tbx3.BackColor = "16777215"
tbx1.BackColor = "-2147483633"
Else
tbx2.BackColor = "-2147483633"
tbx3.BackColor = "-2147483633"
tbx1 = "16777215"
End If
TIA