Hi, I am trying to incorporate an if statement that finds a specific set of data and it includes amounts less than 6,000,000.
The type for the amount column is double but when I try to put in the formula without the quotes it doesn't seem to like it.
if [Cod.Op.Bco.] = "2033" and [Descripción] = "IVA Basico 21%" THEN "2"
ELSEIF [Cod.Op.Bco.] = "66" AND [Descripción] = "IVA Basico 21%" AND [IMPORTE] <-6,000,000 AND [CUENTA] = "10202160000" THEN "X" ENDIF
If I add the quotes in the formula is accepted, but it doesn't give me the correct result.
if [Cod.Op.Bco.] = "2033" and [Descripción] = "IVA Basico 21%" THEN "2"
ELSEIF [Cod.Op.Bco.] = "66" AND [Descripción] = "IVA Basico 21%" AND [IMPORTE] <"-6,000,000" AND [CUENTA] = "10202160000" THEN "X" ENDIF
Any ideas what I am doing wrong?