请指导(时间段的查询)
用DTPicker1,DTPicker2,查询时间段的数据,我是这样写的,但不成功,请问错在哪?Private Sub DTPicker1_CallbackKeyDown(ByVal KeyCode As Integer, ByVal Shift As Integer, ByVal CallbackField As String, CallbackDate As Date)
Adodc1.RecordSource = "select * from AdviceListView where exectime>'" & Trim(DTPicker1.Value) & "' and exectime<'" & Trim(DTPicker2.Value) & "'"
Adodc1.Refresh
End Sub