在iif子句条件中连接多个字段时显示SSRS报表生成器2016中的错误

时间:2018-12-20 15:34:05

标签: ssrs-2016

当我连接多个字段时,如果显示真实线索,则显示错误。我的表情代码如下:

=IIf(Fields!testnm.Value="High Temperature Test","Temperature Tolerance :"&Fields!val1.Value&" "&"Duration :"&Fields!val2.Value&" "&"Remarks :"&Fields!val3.Value,
IIf(Fields!testnm.Value="Burn In Test","Temperature Tolerance :"&Fields!val1.Value&" "&"Duration :"&Fields!val2.Value&" "&"Remarks :"&Fields!val3.Value,
IIf(Fields!testnm.Value="Low Temperature Test","Temperature Tolerance :"&Fields!val1.Value&" "&"Duration :"&Fields!val2.Value&" "&"Remarks :"&Fields!val3.Value,
IIf(Fields!testnm.Value="Dump Heat Test","Temperature Tolerance :"&Fields!val1.Value&" "&"RH Tolerance ""&Fields!val2.Value&" "&"Duration :"&Fields!val3.Value&" "&"Remarks :"&Fields!val4.Value,
IIf(Fields!testnm.Value="Rendom Vibration Test","Frequency Range :"&Fields!val1.Value&" "&"BreakUp  Details :"&Fields!val2.Value&" "&"duration :"&Fields!val3.Value&" "&"Vibration Axis :"&Fields!val4.Value&" "&"Remarks :"&Fields!val5.Value&,
IIf(Fields!testnm.Value="Shock Test","Amplitude :"&Fields!val1.Value&" "&"Pulse Duration :"&Fields!val2.Value&" "&"Shocks :"&Fields!val3.Value&" "&"Wave :"&Fields!val4.Value&" "&"Shock Axis :"&Fields!val5.Value&" "&"Remarks :"&Fields!val6.Value,
IIf(Fields!testnm.Value="Sine Vibration Test","Frequency Range :"&Fields!val1.Value&" "&"BreakUp Details :"&Fields!val2.Value&" "&"Duration :"&Fields!val3.Value&" "&"Endurance :"&Fields!val4.Value&" "&"Sweeps :"&Fields!val5.Value&" "&"Endurance Duration :"&Fields!val6.Value&" "&"Vibration Axis :"&Fields!val7.Value&" "&"Remarks :"&Fields!val8.Value,
IIf(Fields!testnm.Value="Thermal Cycling Test","Temperature Tolerance To :"&Fields!val1.Value&" "&"From :"&Fields!val2.Value&" "&"Soak for PTemp :"&Fields!val3.Value&" "&"Soak for NTemp :"&Fields!val4.Value&" "&"Cooling Rate :"&Fields!val5.Value&" "&"Cycles :"&Fields!val6.Value&" "&"Remarks :"&Fields!val7.Value,
IIf(Fields!testnm.Value="Thermal Shock Test","Temperature Tolerance To :"&Fields!val1.Value&" "&"From :"&Fields!val2.Value&" "&"Changeover Time :"&Fields!val3.Value&" "&"Soak Duration :"&Fields!val4.Value&" "&"Cycles :"&Fields!val5.Value&" "&"Remarks :"&Fields!val6.Value,"BreakUp Details :"&Fields!val1.Value&" "&"RH Tolerance :"&Fields!val2.Value&" "&"Cycles :"&Fields!val3.Value&" "&"Remarks :"&Fields!val4.Value)))))))))

任何人都可以指导..感谢您的指导

1 个答案:

答案 0 :(得分:0)

第5行的结尾处有一个多余的内容,或者我是否想念它为什么存在?