按钮代码如下:实现功能:就是想筛选某一时段内的数据,出现上述错误!求解!!!!
Dim D1 As WinForm.DateTimePicker = e.Form.Controls("DateTimePicker_start")
Dim D2 As WinForm.DateTimePicker = e.Form.Controls("DateTimePicker_end")
\'Dim dt1,dt2 As Date
\'dt1 = d1.Value
\'dt2 = d2.Value
\'Dim Filter As String = "停发日期 >= #" & dt1 & "# And 停发日期 <= #" & dt2 & "#"
Tables("减员表_Table减员表").Filter = "停发日期 >= #" & d1.value & "#"