Crystal Reports for Rational Application Developer 设计员指南
FinalFormula
创建名为 FinalFormula 的新公式。
在 Crystal Reports 设计器中选择“公式”选项卡,并键入以下公式:
If ({CUSTOMER.CUSTOMER_NAME} [1 to 2] = "Bi" and
ToText({CUSTOMER.CUSTOMER ID}) [1] = "6") or
({CUSTOMER.CUSTOMER_NAME} [1 to 2] = "Ro" and
ToText({CUSTOMER.CUSTOMER ID}) [1] = "5") Then
"PREFERRED CUSTOMER"
Else
"DOES NOT FIT CRITERIA"