DelPhi执行行刷新时报错,即执行ds.RefreshRecord时,报can not get at least 1 key field.
3个回答
展开全部
楼主要实现数据的实时更新对吧~
用这个RefreshRecord不行,我都用书签的办法~给个代码你参考
procedure M_RefreshRecord(M_ADO: TADOQuery);
var SavePlace: TBookMark;
begin
With M_ADO do begin
SavePlace:=GetBookmark;
DisableControls;
Requery;
EnableControls;
GotoBookmark(SavePlace);
FreeBookmark(SavePlace);
end;
end;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询