i am trying to use an iff statement in a form.
pretty much the statement would be in a savings textbox
i can type = [revenue]-[cost] and i get a result.
however, it has to be ok for [cost] to be blank. therefore, i've tried:
iif([cost] is NULL, [revenue], [revenue]-[cost])
this did not work. i wasn't sure if it was my syntax in "[cost] is NULL" so i tried:
iif([cost] =100, [revenue], [revenue]-[cost])
this still just gave me #name in the text box. What am I doing wrong?
I've been under the impression that I can simply just type that into the textbox in design view but clearly it has not been working.
pretty much the statement would be in a savings textbox
i can type = [revenue]-[cost] and i get a result.
however, it has to be ok for [cost] to be blank. therefore, i've tried:
iif([cost] is NULL, [revenue], [revenue]-[cost])
this did not work. i wasn't sure if it was my syntax in "[cost] is NULL" so i tried:
iif([cost] =100, [revenue], [revenue]-[cost])
this still just gave me #name in the text box. What am I doing wrong?
I've been under the impression that I can simply just type that into the textbox in design view but clearly it has not been working.