If statement in reports

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top