Subject Help 'Cannot Edit current Row'
Author Daniel Bertin
Hi all
this little piece of code keeps giving me the error 'Cannot Edit current Row'
requestlive = true
readonly = false
what else can be giving me this error?? please someone give me a hint? what
other reason for this error??


lastno := datamodule1.IBOtable1.fieldbyname('ldispno').asinteger;
datamodule1.IBOLastQuery.open;
if datamodule1.IBOLastQuery.Locate('dispno',vararrayof([lastno]),[]) then
Begin
datamodule1.IBOLastQuery.edit;
datamodule1.IBOLastQuery.fieldbyname('TRI').asstring :=
wwDBLookupCombo7.Value;
datamodule1.IBOLastQuery.post;
end
else
showmessage('not found');

this is the SQL

select * from disp_leg
where loaddate > CURRENT_TIMESTAMP - 7
and complete = 'Y'
order by dispno

Help
Daniel
Daniel Bertin
New Generation Software