%20%E4%B8%AD%E5%87%8F%E5%8E%BB%20(X)%20%E5%A4%A9%E6%95%B0%EF%BC%8C%E7%84%B6%E5%90%8E%E7%94%A8%E5%8F%A6%E4%B8%80%E4%B8%AA%E6%97%A5%E6%9C%9F%E8%BF%9B%E8%A1%8C%E6%A3%80%E6%9F%A5.png)
我目前正在使用 Crystal Reports XI,并尝试制作一个公式来突出显示当前日期时间 72 小时内的发货日期。我该如何制作一个可以执行该功能的公式?
我的猜测是,但我不知道该怎么做
{TableName.ShipDate} <= CurrentDatetime - 72 Hours
then crYellow
答案1
IF {Table.ShipDate} <= CurrentDateTime
then crRed
ELSE
IF ({Table.ShipDate} - 3) <= CurrentDateTime
then crYellow
ELSE
crNoColor;