X
xy_c
Unregistered / Unconfirmed
GUEST, unregistred user!
语句如下:
sqlstr:='select distinct zzlk.bh,zzlk.dwmc,nbgfk.* from zzlk,nbgfk where zzlk.bh=nbgfk.bh';
with czdjdatam.nbgfkq do
begin
close;
sql.clear;
sql.Add(sqlstr);
open;
showmessage(inttostr(recordcount));
end;
dbedit4.DataSource:=czdjdatam.nbgfkqds;
dbedit4.DataField:='zzlk.xm';
运行时提示'zzlk.xm'字段没找到,再修改成"dbedit4.datafield:='xm'"也一样错.
该如何解决?
sqlstr:='select distinct zzlk.bh,zzlk.dwmc,nbgfk.* from zzlk,nbgfk where zzlk.bh=nbgfk.bh';
with czdjdatam.nbgfkq do
begin
close;
sql.clear;
sql.Add(sqlstr);
open;
showmessage(inttostr(recordcount));
end;
dbedit4.DataSource:=czdjdatam.nbgfkqds;
dbedit4.DataField:='zzlk.xm';
运行时提示'zzlk.xm'字段没找到,再修改成"dbedit4.datafield:='xm'"也一样错.
该如何解决?