English 中文(简体)
伊斯努尔水晶报告的麻烦
原标题:Troubles with IsNull Crystal Reports

我使用Crystal Reports 12.3和Peachtree Account 2012来管理一些数据库。我现在的任务只是编写一份报告,其中载有过去30天没有下订单的客户。我最近才来,因此我请求你的帮助。

我的第一个尝试是使用这个公式( 我在公式编辑器 - & gt; 记录选择中做我所有的东西):

not ({Customers. lastInstvoiceDate} 年龄为0至30天) ({Customers. lastInvoiceDate})

除了无效值之外,一切似乎都很好。 我需要将无效值包含在报告记录中。 所以我将公式改写为 :

not ({Customers. lastInvoiceDate} ({Customers. lastInvoiceDate} ) 于 ged0 to30 days) OR IsNull ({Customers. lastInvoiceDate}) ({Customers. lastInvoiceDate}) 或 or IsNull ({Customers.{Customers. lastInvoiceDate} ) ({Customers. lastInvoiceDate} /code> 。

但在2012年Peachtree会计中,我看到一个客户有一个空白的 LastInvoiceDate 字段,该字段不在报告内。

我最后的公式中是不是有某种错误? 或者"日期时间"类型有"其他"黑值吗?

最佳回答

您应该总是首先检查空格, 所以尝试将第二个公式颠倒到

isnull ({Customers. lastInstvoiceDate}) 或不是 ({Customers. lastInvoiceDate}, 年龄为0 - 30 天)

如果Crystal遇到一个空格, 并且没有先明确处理它, 那么公式的其余部分就会乱七八糟, 而不进行评估。 另一个方法就是告诉Crystal在公式工作坊中使用Nulls的默认值, 而不是Nulls的例外( 这是公式工作坊工具栏中的下调设置 ) 。

问题回答

长度( trim( {客户端 { 客户端. lastInstvoiceDate} ) = 0

一份声明,无需使用断核函数和OR操作员。





相关问题
1099r IRS form instal Report

我们需要从申请中产生1099r份IRS报告,我们已决定用晶报告编写这份报告。 很奇怪的是,任何人都这样做了,如果是,可以......

How to split a Crystal Reports subreport across a page break?

I m using Visual Studio 2005 and writing in VB.NET. I have a subreport in a Crystal Reports report consisting of a list of log entries. Sometimes the list of log entries is long enough that it would ...

Adding Crystal Reports support into LAMP product

We have a newly documented feature request, from sales and support, to integrate Crystal Reports into our LAMP product. (It s more like LAPP, really, with Postgres and PHP.) I have to admit, ...

Crystal Report value Convertion?

i have to crystal report made from Dataset,and we have to one formula field i wrote Add() but that formula field show cancatination like 10+20=1020 i realize they need to convert that field in sight ...

How to Hyperlink to a Business Objects Report in Infoview

Is there a way to craft a hyperlink that connects to a Crystal Report or Webi within Infoview? Ideally, unauthenticated users would be challenged with Infoview security and then redirected to the ...

Crystal Report XI trouble with big XML data file

I have a big xml file (65 Mo) that I need to feed to a Crystal Report XI. My problem is that I tried running the report and it takes forever to display a single page (about 15 minutes a page). I still ...

Transferring Crystal report

I have created a crystal report in VS 2005 using the wizard. In the report I have created an OLE DB connection to a server which has a database student . Now I need to run this report on another ...

热门标签