Dim y As Integer = 2011 '指定年份Dim dt1 As New Date(y, 1, 1)Dim dt2 As New Date(y, 12, 1)Dim Filter As StringFilter = "日期 >= #" & dt1 & "# And 日期 <= #" & dt2 & "#" Tables("订单").Filter = Filter
参考下