Hi all,
I am getting an error: Type mismatch. Number provided where a String is required when I am trying to perform the following:
[COL1] = Type is double
[COL2] = the new column this is creating, Type is V_WString
IF IsNull([COL1]) THEN Null() ELSEIF Length([COL1]) = 8 THEN LEFT([COL1], 4) + "-" + Substring([COL1], 5,2) + "-" RIGHT(COL1], 2)) ELSE DateTimeFormat(DateTimeAdd("1899-12-30", [COL1], "days"), "%Y-%m-%d") ENDIF
Thanks for your help!