1 Reply Latest reply on Sep 26, 2017 10:35 PM by MinusZero

    If ElseIf Statments

    keveng73216386

      I need to add the Sales Tax for a state in a dropdown box to a numeric field.

        • 1. Re: If ElseIf Statments
          MinusZero Level 3

          Hi,

           

          Your description is a bit vague but if i understand correctly, you can use a button to make the calculation. I havent included any logic to protect against empty fields.

           

          form1.#subform[0].btnCalculate::click - (FormCalc, client)

          grandTotal = subTotal + (subTotal * (salesTaxCbo / 100))

           

          Assuming:

          salesTaxCbo - Checkbox prefilled with tax percentage

          subTotal - Numeric field

          grandTotal - Numeric field which gets calculated amount.

          btnCalculate - The button to calculate the grand total

           

           

          ----------------------------------------------------------

          -----------------------------------------------------------