Private sub copydata(lSendenok as boolean)BestBO1.Filter = "status = 'L'"BestBO1.MoveFirst()If lSendenOk Then ... Not yet testedElse Dim nCount As Integer = 0 ' For testing Do BestBO1.STATUS = "W" nCount = nCount + 1 ' For testing Loop While BestBO1.MoveNext BestBO1.Save() MsgBox(nCount.ToString) ' For testingEndif