[b]DeleteTracking(VAR SKU : Record "Stockkeeping Unit";ToDate : Date)[/b] ActionMsgEntry.SETCURRENTKEY("Reservation Entry"); WITH ReservEntry DO BEGIN RESET; SETCURRENTKEY("Item No.","Variant Code","Location Code"); SETRANGE("Item No.",SKU."Item No."); SETRANGE("Variant Code",SKU."Variant Code"); SETRANGE("Location Code",SKU."Location Code"); SETFILTER("Reservation Status",'<>%1',"Reservation Status"::Prospect); IF FIND('-') THEN REPEAT IF (("Reservation Status" <> "Reservation Status"::Reservation) AND ("Expected Receipt Date" <= ToDate) AND ("Shipment Date" <= ToDate)) OR ((Binding = Binding::"Order-to-Order") AND ("Shipment Date" <= ToDate)) THEN BEGIN ActionMsgEntry.SETRANGE("Reservation Entry","Entry No."); DELETE; ActionMsgEntry.DELETEALL; END; UNTIL NEXT = 0; END;I am thinking of replacing this find('-') with findset(true, true) since it's doing a delete in the middle of the code, what do you think?