begin
login.FindFirst;
While not login.Eof do begin
// .........
login.FindNext;
end;
messagedlg('Got to Message',mtwarning, [mbOK],0);
end;
I get the dreaded EOLEException error - 'Either Bof or Eof is True, or the
current record has been deleted. Request operation requires a current
record."
The messageDlg line is never reached. The table is transversed until the
final record is reached, before the error appears.
"login" is a TADODataSet connected to an Access 2000 table.
What am I doing wrong??? Can I turn this off somehow???
Steve Hunt
"Steve Hunt" <sh...@tnscale.com> wrote in message news:3c0bb728$1_2@dnews...
Raphael.
rso...@rsi.com.br
"Steve Hunt" <sh...@tnscale.com> escreveu na mensagem
news:3c0bb728$1_2@dnews...
"Edwin Walker" <ewa...@summitnational.com> wrote in message
news:3c0bb9cd$1_2@dnews...
Make sure you recompile your whole app, and any DLL's that uses ADOExpress.
Edwin
"Steve Hunt" <sh...@tnscale.com> wrote in message news:3c0bd375$1_2@dnews...
Looks to me like bad code. FindNext doesn't set Eof
use
login.FindFirst;
While not login.Eof do begin
// .........
login.Next;
end;
messagedlg('Got to Message',mtwarning, [mbOK],0);
or
login.FindFirst;
While true do begin
// .........
if not login.FindNext then
Break
end;
messagedlg('Got to Message',mtwarning, [mbOK],0);
--
Brian Bushay (TeamB)
Bbu...@NMPLS.com