哈
哈利波特
Unregistered / Unconfirmed
GUEST, unregistred user!
有radiobutton1(男),radiobutton2(女)和一个checkbox1还有query1
下面是语句:if checkbox1.checked then
begin
if radiobutton1.checked then
begin
query1.close;
query1.sql.clear;
query1.sql.add('select da.xm,zy.zy from da,zy where (da.xb='男')and(da.bh=zy.bh)';
query1.open;
end;
if radiobutton2.checked then
begin
query1.close;
query1.sql.clear;
query1.sql.add('select da.xm,zy.zy from da,zy where (da.xb='女')and(da.bh=zy.bh)';
query1.open;
end;
end;
查询后'男'的可以找到,'女'的找不到,你说怪不怪!!!!!!!!
数据库中指定有'女'的记录!!![][]
下面是语句:if checkbox1.checked then
begin
if radiobutton1.checked then
begin
query1.close;
query1.sql.clear;
query1.sql.add('select da.xm,zy.zy from da,zy where (da.xb='男')and(da.bh=zy.bh)';
query1.open;
end;
if radiobutton2.checked then
begin
query1.close;
query1.sql.clear;
query1.sql.add('select da.xm,zy.zy from da,zy where (da.xb='女')and(da.bh=zy.bh)';
query1.open;
end;
end;
查询后'男'的可以找到,'女'的找不到,你说怪不怪!!!!!!!!
数据库中指定有'女'的记录!!![][]