2013-08-18 34 views

回答

0

使用“字段资源管理器”创建数值参数{?Month},值为1-12和相应的描述(例如1是1月)。

接下来,创建一个记录选择公式类似于:

// calculate the beginning of the month and the last of month (add a month to the first day of the month, then subtract a day) 
{table.date} IN Date(Year(DataDate), {?Month}, 1) TO Date(DateAdd("m", 1, Date(Year(DataDate), {?Month}, 1)) - 1) 
+0

我应该在参数字段创建下的数值参数? – user2650781

+0

如果我想按月份和我选择的年份对它进行排序,那么该怎么办?那可能吗? – user2650781

+0

按年份排序?参数或数据? – craig