Crystal Report复制字段

时间:2019-02-06 07:39:21

标签: crystal-reports

Crystal Reports中的hello im freasher,我面临的一个问题是,我在ms访问中有两个带有数据的表 1.员工2.采购订单
有两个员工
采购订单分为A,B和C三种类型
所以我需要查看每个员工的A,B和c的数量。
可以说
EMP帐户类型
阿比2 A
            1 B
       0 C
Bibi 5 A
       0 B
       1 C
这样我该怎么办

1 个答案:

答案 0 :(得分:0)

    {@Count} // Place the formula the group header and hide it
    global numbervar code = 0;

    {@IncrementBarCount} // Place it in group body and hide it
    global numbervar code;
    if <DATABASE_COLUMN> = "A" then code := code + 1

    {@BarCount} // Place it where you want to see your result
    global numbervar code;