你是如何得到记录号的?
用类似的代码(临时写,可以有误)
try
k := table1.fieldbyname('key').asstring;
Table1.disablecontrol;
table1.first;
while not table1.eof do
begin
if k = table1.fieldbyname('key').asstring then
begin
recordnum:=i;
table1.enablecontrols;
exit;
end;
i:=i+1;
end;
finally
table1.enablecontrols;
end;