i want to build a calculted field in my query depending on the number of the field afid. For example if Afid = 5 then the calculated field should be 4000000 + [paymentid)
If afid = 2, the calculated field should be 2000000 + [paymentid]
etc etc
How can i build the iif condition in the calculated field ? I am applying the attachement




