since the "total amount" textbox is in the subform and the "taxamount" textbox is in the main form, you need to reference the "total amount" text box with a "full path" meaning
Forms!MainForm!SubForm!total_amount_txtbox
Replace MainForm,SubForm,total_amount_txtbox with your form's equivalent...