首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

水晶报表里这个公式字段该如何写

2012-01-07 
水晶报表里这个公式字段该怎么写?RT:字段 VIEW13.Quotation04 时间类型if {VIEW13.Quotation04}CurrentDa

水晶报表里这个公式字段该怎么写?
RT:字段 VIEW13.Quotation04 时间类型  
if {VIEW13.Quotation04} < CurrentDate then '111' else '222' 

Error:此处需要有一个字符串。详细资料: errorKind 文件 C:\DOCUME~1\MYPC\ASPNET\LOCALS~1\Temp\{E9855F15-61B5-4FEF-A848-0F9A4D6ED739}.rpt 内出错:公式 . 'if {VIEW13.Quotation04} < CurrentDate then '111' else '222' ' 此处需要有一个字符串。详细资料: errorKind

[解决办法]
if({VIEW13.Quotation04}<DateSerial (2008, 11, 15))
then '1111'
else '2222'
[解决办法]
VIEW13.Quotation04 
这个字段是什么类型?日期型?

如果不是,这样写
if cdate({VIEW13.Quotation04}) < CurrentDate then '111' else '222'

热点排行