如何在“hasvalue”中使用like运算符? Crystal Reports 2008中的公式? [英] How do I use a like operator in a "hasvalue" formula in Crystal Reports 2008?

查看:58
本文介绍了如何在“hasvalue”中使用like运算符? Crystal Reports 2008中的公式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是基于用户指定描述的select的公式,或者返回的是all,或者描述的位置是'%{?DESCR}%',但我不确定在公式中使用LIKE的语法。以下它不起作用。



如果HASVALUE(如(%{?DESCR}%))那么{Command.DESCRIPTION} = {?DESCR} ELSE TRUE



请帮忙。



谢谢

解决方案

< blockquote>尝试使用,例如'%'+ {?DESCR} +'%'而不是,如(%{?DESCR}%)

或者您可能需要将'%'更改为'*'

Here is my formula for a select based on the user specifing a description, or all is returned, or where the description is like '%{?DESCR}%' but I am unsure of the syntax for using LIKE in the formula. The following it does not work.

IF HASVALUE(like(%{?DESCR}%)) THEN{Command.DESCRIPTION} = {?DESCR} ELSE TRUE

Please help.

Thanks

解决方案

Try using like '%' + {?DESCR} + '%' instead of like(%{?DESCR}%)
or may be you have to change '%' into '*'


这篇关于如何在“hasvalue”中使用like运算符? Crystal Reports 2008中的公式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆