in the onclick of the button you would do
me.anotherunboundfieldontheform= me.quantitytxtboxname - me.unboundtxtboxname
this doesnt need to be store in the table right? if it does there are numerous examples regarding stock quantity on this forum. search on that