Code instead of Submit Button?

Dear All,

if I use the Submit button it causes issues within the data collection as I am using code I would like to be able to do the same but not utilise the Submit button as this creates a new item in my data collection. I have looked at utilising Update and insert but would welcome a code snippet to be able to achieve an update to a specific item row? any Help would be greatly appreciated.

Si