2016-08-30 171 views
0

我的报告需要制定当天的日期之后的当前月份的数据。今天之后的本月的日期

以下公式适用于当前月份,那么如何添加行为以显示今天之后的日期?

{Command.plnshpdat} >= Dateserial(year(currentDate),Month(currentdate),1) and 
{Command.plnshpdat}< dateserial(year(currentdate),Month(Currentdate)+1,1) 

回答

0

检查今天之间的任何日期和下月一日:

{Command.plnshpdat} > Date(CurrentDate) 
AND 
{Command.plnshpdat} < DateSerial(Year(Currentdate), Month(CurrentDate) + 1, 1) 

请注意,我们在技术上不需要检查日期后或等于第一本月。这种逻辑现在只是在今天之后才接受价值观而已。

+0

谢谢,我会尝试 – Abbas

+0

@Abbas伟大的,一定要让我知道它是怎么回事。 – 4444

相关问题