SSRS 中的条件操作

发布于 2024-08-25 03:01:56 字数 194 浏览 7 评论 0原文

我希望我的文本框仅在条件为真时才执行操作,否则不执行任何操作。这就是我当前转到另一个报告的操作表达式:

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

这不会产生我想要的结果。无论条件结果如何,它都会为文本框提供一个操作。是否有“无操作”或“取消操作”值?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

死开点丶别碍眼 2024-09-01 03:01:56

VB 中的 null 关键字是 Nothing

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

The null keyword in VB is Nothing:

=IIf(Fields!MyTextbox.Value = "0", "Report2", Nothing)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文