What about: sql.AddNonQueryToBatch(. FIrst result in this search:
www.b4x.com
It has a built in begin/end transaction. After you first click the Button, immediately have: btn.enable =false, then when the transaction is successful and complete. enable the button: btn.enable=true