leemin
11-14-2000, 01:01 AM
Hi,
Can someone tell me what is the data type of DTPicker control. I tried using 'valtype' and it said Date.
But I can't seem to be able to extract a recordset based on date range.
This is my code:
Adodc2.RecordSource = "SELECT Ta_ITEMTRN.CODE, Ta_ITEMTRN.TRNDATE, " & _
"FROM Ta_ITEMTRN WHERE Ta_ITEMTRN.CODE='" & itemcode.BoundText & "' " & _
"Ta_ITEMTRN.TRNDATE>=#" & Ctl_sdate & "# AND Ta_ITEMTRN<=#" & Ctl_edate & "#"
Ctl_sdate and Ctl_edate are DTPicker control.
When it's run, it just pull all records belong to ta_itemtrn.code instead of what I want.
Can someone help ?
Can someone tell me what is the data type of DTPicker control. I tried using 'valtype' and it said Date.
But I can't seem to be able to extract a recordset based on date range.
This is my code:
Adodc2.RecordSource = "SELECT Ta_ITEMTRN.CODE, Ta_ITEMTRN.TRNDATE, " & _
"FROM Ta_ITEMTRN WHERE Ta_ITEMTRN.CODE='" & itemcode.BoundText & "' " & _
"Ta_ITEMTRN.TRNDATE>=#" & Ctl_sdate & "# AND Ta_ITEMTRN<=#" & Ctl_edate & "#"
Ctl_sdate and Ctl_edate are DTPicker control.
When it's run, it just pull all records belong to ta_itemtrn.code instead of what I want.
Can someone help ?