Cust.RESET; Cust.SETRANGE(Cust.Blocked,Cust.Blocked::" "); SalesInvoiceHead2.RESET; SalesInvoiceHead2.SETFILTER("No. Printed",'>%1',0); IF Cust.FIND('-') THEN BEGIN REPEAT SalesInvoiceHead2.SETRANGE("Sell-to Customer No.",Cust."No."); UNTIL Cust.NEXT = 0; END; Rec.COPY(SalesInvoiceHead2); CurrPage.UPDATE(FALSE); I modified the code and add the REPEAT LOOP however after excute the page set a filter on it and only show the last customer invoice. where am I getting wrong with this program ?
↧