错在'select * from xkzdb where xkzh strtoint(combobox3.text) and xkzh <strtoint(combobox4.text)‘中,将查询字符串改为'select * from xkzdb where xkzh > ’ + combobox3.text+'and xkzh < ' + combobox4.text'
调试欢乐多
'select * from xkzdb where xkzh>'+combobox3.text+' and xkzh <'+combobox4.text
试试看。
这句怎么改呢???
begin
with dm.query1 do
begin
close;
sql.clear;
sql.add('select * from xkzdb where xkzh strtoint(combobox3.text) and xkzh <strtoint(combobox4.text)');
open;
end; end;
这句怎么改呢???
begin
with dm.query1 do
begin
close;
sql.clear;
sql.add('select * from xkzdb where xkzh strtoint(combobox3.text) and xkzh <strtoint(combobox4.text)');
open;
end; end;