I don't think you can do this because an IIF statement is not a value.
I have done this before by adding code to the OnLoad event of the form.
Try adding your code there....... except you woulg write it like
Code:
If Me!Hours = 0 then
me!OUTPUT = "YES"
Else
me!OUTPUT = "NO"
End if