I have a table in a database where I need to make a calculated field for VAT based on the criteria of another field. I have an amount field, a cash/invoice field which is filled from a combo box in a form with only choice Cash or Invoice, and I need the VAT to look at the cash/invoice field and if it says cash then return a zero and if not then calculate 20% of the amount field.
I can't seem to be able to get it to look up what is in the cash/invoice field to do this