其实换个说法,就是获得当月日期范围: Dim y As Integer = Date.Today.YearDim m As Integer = Date.Today.MonthDim dt1 As New Date(y, m, 1)Dim dt2 As New Date(y, m, Date.DaysInMonth(y, m)) '获取本月的最后一天
Tables("表名").Filter = "日期 >=#" $ dt1 & "# And 日期 <= #" & dt2 & "#"