水晶报告2008,配方领域 [英] crystalreport 2008 ,formula fields

查看:118
本文介绍了水晶报告2008,配方领域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在公式字段中编写了此代码.

Hello,

I wrote this code in formula fields.

shared numbervar bb;
if isnull({tbl1.sumbed}) and isnull({tbl1.sumbes})
then 0
else bb := bb + ({tbl1.sumbed}-{tbl1.sumbes});


我在DataSet中构建tbl1.其中的字段与我的查询中的字段相同.

但是我有这个错误:必须输入数字或货币字段,日期,时间.

请有人帮我.


I build tbl1 in DataSet. The fields in it same as fields in my query.

But I have this error: A Number,or currency fields,date,time is required.

Please someone help me.

推荐答案

仅当两个字段均为null时,您的null检查才会返回0-如果其中一个字段为null怎么办?尝试将和"复选框更改为或".
HTH
Your null check will return 0 only if both the fields are null - what if one of them is null? Try changing the "and" check to "or".
HTH


这篇关于水晶报告2008,配方领域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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