Crystal在公式字段中报告公式字段 [英] crystal reports formula field within a formula field
问题描述
在Crystal Report 10中,我正在做一个报告.
我有2个公式@ Address1&@ Address2.
什么是正确的语法才能执行以下操作?...
如果field.area =纽约",则
显示@ address1
其他
显示@ address2
就在最近才开始使用Crystal Report,也希望我有一个正确的论坛.很抱歉,如果在错误的区域.
Within Crystal Report 10 I am doing a report.
I have 2 formula @Address1 & @Address2.
What is the correct syntax to do the following....
if field.area = "New York" then
display @address1
else
display @address2
Just recently starting using Crystal Report and also hope I have the correct forum. Sorry if in wrong area.
推荐答案
尝试:
if {Customer.Region} = 'New York'
then {Customer.Address1}
else {Customer.Address2}
有关晶体配方的示例,请参见:
肯·哈马迪(Ken Hamady)的Crystal Reports公式 [通过代码公式 [ ^ ]
For sample crystal formulas, look here:
Ken Hamady''s Crystal Reports Formulas[^]
Formula via code[^]
您的公式应如下所示
Your formula should be like below
if {field.area} = "New York" then
{@Address1}
else
{@Address2}
这篇关于Crystal在公式字段中报告公式字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!