各们老师帮帮忙! 又是报 types of expressions must match!
string m,d,m1,d1,rqsql,qsrq,jsrqm=string(ole_1.object.month)
d=string(ole_1.object.day)
if ole_1.object.month<10 then m="0"+string(ole_1.object.month)
if ole_1.object.day<10 then d="0"+string(ole_1.object.day)
m1=string(ole_2.object.month)
d1=string(ole_2.object.day)
if ole_2.object.month<10 then m1="0"+string(ole_2.object.month)
if ole_2.object.day<10 then d1="0"+string(ole_2.object.day)
qsrq=string(ole_1.object.year)+"-"+m+"-"+d
jsrq=string(ole_2.object.year)+"-"+m1+"-"+d1
rqsql="增仓日期>="+qsrq+" and 增仓日期<="+jsrq
dw_1.reset()
dw_1.settransobject(sqlca)
dw_1.setfilter(rqsql)
dw_1.filter()
dw_1.retrieve()
ole_1.setfocus()