大
大菠萝
Unregistered / Unconfirmed
GUEST, unregistred user!
用ACCESS数据库的,为什么执行后没数据出来,请各位帮忙看看
year:=strtoint(spinedit1.text);
if combobox2.Text='全年' then
rrqq:=' where rq between '+datetimetostr(encodedate(year,1,1))+' and '+datetimetostr(encodedate(year,12,31))
else
begin
month:=strtoint(combobox2.text);
rrqq:=' where rq between '+datetimetostr(encodedate(year,month,1))+' and '+datetimetostr(encodedate(year,month,31));
end;
year:=strtoint(spinedit1.text);
if combobox2.Text='全年' then
rrqq:=' where rq between '+datetimetostr(encodedate(year,1,1))+' and '+datetimetostr(encodedate(year,12,31))
else
begin
month:=strtoint(combobox2.text);
rrqq:=' where rq between '+datetimetostr(encodedate(year,month,1))+' and '+datetimetostr(encodedate(year,month,31));
end;