crystal 用于过滤条形图日期的报表公式

crystal report formula to filter between dates for bar chart

当我尝试在 crystal 报表选择记录公式中添加参数以在日期之间进行过滤时出现错误。这是我使用的公式:

if {tblFaultyDevice.date} >= {?dateFrom} and {tblFaultyDevice.date} <= {?dateTo} then true

错误:

A string is Required Here

你写的是错误的.. select 专家记录 selection 不接受任何布尔值到 return.

你的公式应该是:

{tblFaultyDevice.date} >= {?dateFrom} and {tblFaultyDevice.date} <= {?dateTo}