Good day, I am having trouble with an IIF statement. Can someone tell me if this is doable. I get an erro that says wrong number of arguments. What I am looking for is that when a Hospital is selected that factor is displayed for, for example if Methodist is select then 85.00 dollars is displayed. Not sure if OR operator is correct to use. Can someone help me please.
Hospital Factor: CCur(IIf([HospitalName]="Baptist Health Systems",98.00 Or [HospitalName]="Christus Santa",100.00 Or [HospitalName]="HCA",75.00 Or [HospitalName]="Methodist",85.00 Or [HospitalName]="University Health Systems",99.00))
That is not the appropriate syntax; you'd nest multiple IIf() functions. Based on what you're doing, the Switch() function would be simpler. I'd probably have the data in a table to make it more dynamic.