OnVisible of that form,
Set(Var_buttonmode,"Edit")
OnSelect of button, after your update function,
Set(Var_buttonmode,"Disabled")
then set the displaymode of the button to Var_buttonmode
That way the button will become disabled after you update. If something else happens that should make it available again, you can set the variable to "Edit."
@jasmine2020 if this answers your question, please mark it a solution so other people can find it.