@Uncle Gizmo
The iif statement is working by itself. When the expression is true it produces a number code that I am trying to use with a table.
Example:
Say I have this iif statement
Light_Code:If([Field1]="Red","1",IIf([Field1]="Green","2","Caution"))
My table looks like this
ID, CODE...