您好, 我写的公式字段代码。shared numbervar bb; if isnull({tbl1.sumbed}) and isnull({tbl1.sumbes}) then 0 else bb := bb + ({tbl1.sumbed}-{tbl1.sumbes}); 我在DataSet中建立TBL1。在我的查询中的字段相同。 但我有这样的错误:一个数字,或货币领域,日期,时间需要。 请人帮我。
shared numbervar bb; if isnull({tbl1.sumbed}) and isnull({tbl1.sumbes}) then 0 else bb := bb + ({tbl1.sumbed}-{tbl1.sumbes});