how can i filter dates in vb6 and msaccess 2000.. im using adodc my code is
pickfrom and pickto are datetime picker controls..
dtr is my table
Adodc3.CommandType = adCmdText
Adodc3.RecordSource = "select * from dtr where dtr.[employee number]='" & Label4.Caption & "' and dtr.date between " & pickfrom.Value & " and " & pickto.Value & " order by dtr.date"
Adodc3.Recordset.Requery
Adodc3.Refresh
but the results are not correct..
i also tried to used the logical operators rather than BETWEEN..
the data types are date/time..