The best bet on the edit page is to delete all of the rows for that record and then re-insert the ones selected with the same code... So you use the same insert code, just add the delete record code before it so that the old selections are effectively cleared out.