=tablerevert(.t.,'rsTSBlocks') && Everything we wanted to save should be already saved =cursorsetprop('Buffering', 3,'rsTSBlocks') private nTemplateID, nBlockCount nBlockCount = 0 nTemplateID = thisform.oCurrentNode.values("TemplateID").value =mySQLExec("execute dbo.siriussp_rsGetBlocks @TemplateID = ?m.nTemplateID, @BlocksCount = ?@nBlockCount OUTPUT" , 'rsTSBlocksTemp',program()) zap in rsTSBlocks =cursorsetprop('Buffering', 5,'rsTSBlocks') make_view_updatable('rsTSBlocks',5) insert into rsTSBlocks ; select * from rsTSBlocksTemp use in select('rsTSBlocksTemp') select rsTSBlocks llReturn = thisform.SetBlocksPage(m.nBlockCount)Unfortunately, this whole idea is wrong and not going to work. The problem is that the records are going to be treated as newly inserted.