我正在使用Microsoft Visual Studio 2010生成一个使用查询(连接到本地sql server)作为数据源的表。我试图在字体颜色上使用条件格式。
这有效:
=Iif(Fields!Status_RC.Value = "Open", "DarkBlue",
Iif(Fields!Status_RC.Value = "Work In Progress", "SeaGreen","Red"))
但这不是:
=Iif(Fields!Status_RC.Value = "Open", "DarkBlue",
Iif(Fields!Status_RC.Value = "Past Due", "Red",
Iif(Fields!Status_RC.Value = "Work In Progress", "SeaGreen","Red"))
我不明白为什么。 在此先感谢您的帮助。
答案 0 :(得分:1)
=Iif(Fields!Status_RC.Value = "Open", "DarkBlue",
Iif(Fields!Status_RC.Value = "Past Due", "Red",
Iif(Fields!Status_RC.Value = "Work In Progress", "SeaGreen","Red")))