A
ApolloHui
Unregistered / Unconfirmed
GUEST, unregistred user!
with adoquery4 do
begin
close;
sql.Clear;
sql.Add('select 单位工程号 from 单位工程表 where 单位工程名称='+''''+f0+'''');
execsql;
open;
end;
dwgch:=adoquery4.Fields.Fields[0].AsInteger;
with adoquery4 do
begin
close;
sql.Add('select 楼层号 from 楼层表 where 单位工程号='+inttostr(dwgch)+'and 楼层名称='+''''+f1+'''');
execsql;
open;
end;
光是第一个查询不出问题,一加上第二个提示两面三个都有错呀。哪位大虾帮瞅瞅呀!大分相送
begin
close;
sql.Clear;
sql.Add('select 单位工程号 from 单位工程表 where 单位工程名称='+''''+f0+'''');
execsql;
open;
end;
dwgch:=adoquery4.Fields.Fields[0].AsInteger;
with adoquery4 do
begin
close;
sql.Add('select 楼层号 from 楼层表 where 单位工程号='+inttostr(dwgch)+'and 楼层名称='+''''+f1+'''');
execsql;
open;
end;
光是第一个查询不出问题,一加上第二个提示两面三个都有错呀。哪位大虾帮瞅瞅呀!大分相送