in reply to Update works for line...deletes other records
See Deletes All Records not just one for extensive discussion including code examples and fix.