基本上我转换了这个Crystal Report公式
if ucas({?Trade Buy or Sell}) = "Trade Buy"
then "IOSW_BUY_01"
else if ucase({?Trade Buy or Sell})="Trade Sell" then IOSW_SELL_02.
致:
SSRS -IIF(Fields!TradeBuyorSell.Value="Trade Buy","IOSW_BUY_01",
IIF(Fields!TradeBuyorSell.Value="Trade Sell","IOSW_SELL_02"))
但是,我收到以下错误消息
错误消息
[rsCompilerErrorInExpression] textrun'TradeBuyorSell.Paragraphs [0] .TextRuns [0]的值表达式包含 错误:[BC30455]参数'FalsePart'of未指定参数 公共功能IIF(表达式为布尔值,TruePart为对象, FalsePart As Object)作为对象'
请帮助这是非常紧急的。
答案 0 :(得分:0)
你的内心IIF缺少功能的第二个“假”部分。
IIF(Fields!TradeBuyorSell.Value="Trade Buy","IOSW_BUY_01", IIF(Fields!TradeBuyorSell.Value="Trade Sell","IOSW_SELL_02", **************))
将 * ** * ** 替换为需要去的值。