<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#000000 size=2>I have an odd problem filtering a
clientdataset - I apply a filter and check the record count like</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2> if cdsFind.RecordCount
> 0 then</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2> begin</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2> ....do stuff -
that works OK</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2> end else</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2> begin</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2>
cdsFiltered:=false;
//<===== crashes here</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2>
cdsFind.Filter:='';</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2> end</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>If there are no matches, then in most
datasets there is no problem, but on one I get The error message</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2>"class EDBClient with message
'At End of Table' "</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>Anyone have any hints what is
wrong and what I can do?</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV>John</DIV>
<DIV> </DIV></BODY></HTML>