开发者

IN operator in Crystal Report

I was trying to filter the crystal report by using the IN operator like what we do in SQL. In crystal report, i was trying to do it the same way as something like this ({i_NonPfcIncDetStt.TeamCode} IN ('开发者_JS百科ABC','DEF')) but it's giving me error, "The ) is mising".

Any idea how can i do this in crystal report?


({i_NonPfcIncDetStt.TeamCode} IN ['ABC','DEF']) perhaps?


Yep, use the brackets not parens.

For fancy, you can put the to-match strings in a delimited string variable, and then use SPLIT.

@toMatchList
"ABC,DEF,MDV,HLV,ILY,TLA,OMG,LOL,GOD,ETC"

({i_NonPfcIncDetStt.TeamCode} in Split(@toMatchList, ","))

For extra-fancy, you can do pattern matching.


This works too:

Month({Person.Date}) IN [7,8]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜