See Also:

Coding the Commit Button (Update and Add)