Can anyone help?
I'm trying to write an IIf statement but am getting a bit confused.
I have several columns in a query. Two columns have a number in them, either 0 or 1.
If these two columns are less than 2, (i.e. 1 and 0, or 0 and 0) then I wanted a calculation.
I.e.
Field = IIf ([Field1] + [Field2] <=2, ([DaysYOB]+[DayDOD])+([TotalYears]*365))
However, this gives me an error message. What have I done wrong?
thanks
Sye
I'm trying to write an IIf statement but am getting a bit confused.
I have several columns in a query. Two columns have a number in them, either 0 or 1.
If these two columns are less than 2, (i.e. 1 and 0, or 0 and 0) then I wanted a calculation.
I.e.
Field = IIf ([Field1] + [Field2] <=2, ([DaysYOB]+[DayDOD])+([TotalYears]*365))
However, this gives me an error message. What have I done wrong?
thanks
Sye