参考:http://www.foxtable.com/webhelp/topics/2720.htm
Dim y As Integer = Date.Today.Year
Dim w As Integer = Date.Today.DayOfWeek '算出今天是星期几
Dim dt1 As Date = Date.Today.AddDays( - w) '获取本周的第一天
Dim dt2 As Date = Date.Today.AddDays(6 - w) '获取本周的最后一天
Dim Filter As String
Filter = "日期 >= #" & dt1.AddDays( - 7) & "# And 日期 <= #" & dt2.AddDays( - 7) & "#"
Dim Filter1 As String = "日期 >= #" & dt1.AddDays( - 14) & "# And 日期 <= #" & dt2.AddDays( - 14) & "#"
msgbox("上上周条件:" & Filter1)