本文介绍了如果“水晶"中的“其他"报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...我有没有可能在水晶报告中使用如果不是..

我的要求是表格中有3个字段,即``Phone'',``mobile1''和``mobile2'',我写了一个公式字段为

{CustDetail.Phone} +''''+ trim(''/'')+''''+ {CustDetail.Mobile1} + trim(''/'')+''''+ {CustDetail.Mobile2}

但是假设mobile2不存在意味着"/"不应该显示....

请检查以下快照

http://s18.postimage.org/6gifkt7mh/image.jpg

Hi... Is there any possibility that i can use if else in crystal report..

My requirement is there are 3 fields are there in a table i.e., ''Phone'',''mobile1'' and ''mobile2'' and i wrote a formula field as

{CustDetail.Phone}+'' ''+trim(''/'')+'' ''+{CustDetail.Mobile1}+trim(''/'')+''''+{CustDetail.Mobile2}

but suppose mobile2 is not exist means that ''/'' should not display....

please check following snapshot

http://s18.postimage.org/6gifkt7mh/image.jpg

推荐答案

if {table1.id} <> 1 then
   var1 := "Hello";
else
   var1 := "Bye";



希望这可以帮助您解决问题



I hope this will help you to solve your problem



这篇关于如果“水晶"中的“其他"报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 09:30