Hi,
I'm trying to do a multi condtion IIF statment and I keep getting error 3075 (missing operator). Please see my syntax
IIf(Count(Factor1.Factor) = 1, Temp.Value*Sum(Factor1.Factor), IIf(Count(Factor1.Factor) = 2 And Temp.Vendor =YYYY , Temp.Value*Max(Factor1.Factor),Null) As [Value]. I'm nut sure if it is missing parenthesis or qoutes around text field. I tried adding both but it still errors. If there's a better way using switch or fixing this would be a great help.
Thanks
I'm trying to do a multi condtion IIF statment and I keep getting error 3075 (missing operator). Please see my syntax
IIf(Count(Factor1.Factor) = 1, Temp.Value*Sum(Factor1.Factor), IIf(Count(Factor1.Factor) = 2 And Temp.Vendor =YYYY , Temp.Value*Max(Factor1.Factor),Null) As [Value]. I'm nut sure if it is missing parenthesis or qoutes around text field. I tried adding both but it still errors. If there's a better way using switch or fixing this would be a great help.
Thanks