Custom Module fields Updation while updating Accounts module account

Custom Module fields Updation while updating Accounts module account

Hello Zoho Community,
I created a custom module that saves the copy of the Accounts Module account. When the User creates an account in Accounts Module my custom function saves its copy in it. The issue that I'm facing is that when the user updates or edits the existing account in the Accounts Module my custom module generates another copy of that account, but I want that the custom function doesn't need to create another one it needs to update the copy of existing account.

Looking forward to your reply.