Forum Discussion

unclejemima's avatar
unclejemima
Post Patron
8 years ago
Solved

Expression that yields variant data type with IF statement?

I used an if statement for a calculated column with no problem if my TRUE variable was fixed

example: IsInventry = if(LComment[FileNo]=7,"True",""

 

If I use a variable as the TRUE 

example: IsInventry = if(LComment[FileNo]=7,LComment[RecordNo],""

I get the error Expression that yields variant data type


Is there any way around this?