>>do form forms\sotpkbxd with curbatchsos.csono, 'PREPARE_BATCH',thisform.erpkeylookupBatchNo.Erptxtgen1.value >> *-- instead of *>>if messagebox('Skip to next Sales Order?',4+32,'Label System') = 6 *-- do this >>do while messagebox('Skip to next Sales Order?',4+32,'Label System') = 6 >> skip in curbatchsos >> if eof('curbatchsos') >> messagebox('No more Sales Orders to Process',0,'Label System') exit >> endif EndDo *>>endif >>thisform.Refresh() >>