Record delete

From: miek (m706102516_at_cs.com)
Date: 09/23/04


Date: 23 Sep 2004 07:41:29 -0700


This code gives me an EOleException "operation not allowed
in this context" can someone help

 With ADODataset1 Do
  Begin
   Try
    While NOT EOF Do
     Begin
      First;
      DeleteRecords;
      Next;
     End; //While
   Finally
    First;
   End; //Try