W
Warrio
Hello!!
I have to set (by code) the control source of a textbox and I use the
following code:
myTextBox.ControlSource = "IIf(1=1;'True';False')
the result should be 'True'
but when I run this statement, Access says "The expression you entered
contains invalid syntax"
However, the expression works if I type it (by hand) into the textbox
control
Does anyone knows why I can't do that by code?
Thanks for any suggestion
I have to set (by code) the control source of a textbox and I use the
following code:
myTextBox.ControlSource = "IIf(1=1;'True';False')
the result should be 'True'
but when I run this statement, Access says "The expression you entered
contains invalid syntax"
However, the expression works if I type it (by hand) into the textbox
control
Does anyone knows why I can't do that by code?
Thanks for any suggestion