Crystal Reports for Rational Application Developer 设计员指南

使用日期选择记录

Month、Day 和 Year 函数都可以在类似于下列示例中的情况下使用:
Year ({file.DATE}) < 1999
选择 {文件.日期} 字段中年份早于 1999 的记录。
Year ({file.DATE}) > 1992 and Year ({file.DATE}) < 1996
选择 {文件.日期} 字段中年份介于 1992 和 1996(不包括 1992 和 1996)之间的记录。
Year({file.DATE}) >= 1992 and Year({file.DATE}) <= 1996
选择 {文件.日期} 字段中年份介于 1992 和 1996(包括 1992 和 1996)之间的记录。
Month({file.DATE}) in 1 to 4
选择 {文件.日期} 字段中月份为一年中前 4 个月的记录(包括一月、二月、三月和四月)。
Month({file.DATE}) in [1,4]
选择 {文件.日期} 字段中月份为一年中的第一个月和第四个月的记录(包括一月和四月,不包括二月和三月)。



Business Objects,SAP 子公司
http://www.china.businessobjects.com/
支持服务
http://www.china.businessobjects.com/support/
Web 上的产品文档
http://support.businessobjects.com/documentation/