我在Crystal Reports中使用此公式进行用户参数选择(允许多次选择)。
If {?Position} = "ALL" then {Command.category} like "*"
else if {?Position} = "Captain" then {Command.category} like "Captain*"
else if {?Position} = "Driver" then {Command.category} like "Driver*"
else if {?Position} = "Driver" then {Command.category} like "Master*"
“ ALL”参数很好用,但是如果用户同时选择Captain和Driver,则仅显示Captain的值。有什么建议吗?