如何更改价值

Gop*_*pal 0 crystal-reports crystal-reports-8.5 crystal-reports-2008

使用Crystal Report 9

表中的列

ID Qty

01 100
02 300
03 200
...
...
Run Code Online (Sandbox Code Playgroud)

从上表中,如果id = 3,我想使qty = 0

If id = 3 then qty = 0
Run Code Online (Sandbox Code Playgroud)

如何制作一个公式.

需要Crystal Report Formula帮助

Rya*_*yan 5

使用Crystal语法: if {table.ID}=3 then 0 else {table.quantity}

只需在报表中的任何位置使用该公式,通常使用数据库字段{table.quantity}.