Dim dt1 s Date = e.Form.Controls("起始日期填写").Value Dim dt2 s Date = e.Form.Controls("结束日期填写 ").Value
Tables("主要生产原材料进料统计").Filter = "[日期] >= #" & dt1 & "# And [日期] <= #" & dt2 & "#"