Conditional Action in SSRS
Asked Answered
M

1

13

I want my textbox to have an action ONLY if the condition is true, otherwise no action. This is what I have as my current action expression for going to another report:

=IIf(Fields!MyTextbox.Value = "0", "Report2","")

This does not produce my desired result. It gives the textbox an action regardless of the condition result. Is there a 'No Action' or 'Cancel Action' value?

Morey answered 17/3, 2010 at 14:27 Comment(0)
M
26

The null keyword in VB is Nothing:

=IIf(Fields!MyTextbox.Value = "0", "Report2", Nothing)
Morey answered 17/3, 2010 at 18:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.