0

如何仅将日期参数与月份一起使用?

例如:我需要打印整个六月的数据,我想按月排序和打印,没有日期和年份

(在 C# 中工作)

提前致谢

4

1 回答 1

0

使用“字段资源管理器”创建一个数值参数{?Month},其值为 1-12 和相应的描述(例如 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 )
于 2013-08-18T15:14:06.047 回答