How to update the record based on certain criterias.

Original text of this message