H
hgl780428
Unregistered / Unconfirmed
GUEST, unregistred user!
还有就是我这样写的SQL语句怎么老是出错,
if form1.CheckListBox1.Checked[0] then
begin
sql1:='bzdh';
end;
if form1.CheckListBox1.Checked[1] then
begin
sql1:=sql1+','+'bh';
end;
with form1.ADOQuery1do
close;
sql.clear;
sql.text:='select '+sql1+' from jgk';
open;
end;
if form1.CheckListBox1.Checked[0] then
begin
sql1:='bzdh';
end;
if form1.CheckListBox1.Checked[1] then
begin
sql1:=sql1+','+'bh';
end;
with form1.ADOQuery1do
close;
sql.clear;
sql.text:='select '+sql1+' from jgk';
open;
end;