If statement in reports

D

Dan

How would you put an if statement into a report. I have a stored value and I
want to say:

If storedValue = 1 Then TextBox1 = "..."
else: TextBox1 = "..."
End If
 
O

Ofer

Its depend where the text box is.
in the section where the text box is, look at the proprties there is on
print event, enter the code there
If storedValue = 1 Then
me.TextBox1.value = "..."
else
me.TextBox1.value = "..."
End If

The text box need to be unbound, and I notice that you assigned the same
value in both option, there is no point for that
 
Top