REPEAT UNTIL and Modiy, insert, delete

As long as You don’t change a field which is part of the current key (or the primary key which is appended after a secondary key), it’s no problem modifying the same record as the one Your’e looping through. //Lars