JailGuardGuy
Technical User
I have a query that concatenates the name of a staff member with the results of either of two check boxes.
Check box [AOT] indicates that staff member [A] worked overtime. Check box [ATRD] indicates whether that staff member worked a trade for someone else.
The statement ([A]) & " " & (IIf([AOT]=0,"","O.T.")) worked just fine until someone decided we needed to indicate whether an employee traded a shift with someone else. I tried tieing them together with an "OR" statement but obviously, from my results, I don't understand how to do it properly because the output would be "-1" instead of something like "Roscoe Smedley, O.T." or "Roscoe Smedley, TRD"
What I tried:
Expr1: ([A]) & " " & (IIf([AOT]=0,"","O.T.")) OR ([A]) & " " & (IIf([ATRD]=0,"","TRD"))
Any help, even derisive and snide remarks, would be appreciated.
Check box [AOT] indicates that staff member [A] worked overtime. Check box [ATRD] indicates whether that staff member worked a trade for someone else.
The statement ([A]) & " " & (IIf([AOT]=0,"","O.T.")) worked just fine until someone decided we needed to indicate whether an employee traded a shift with someone else. I tried tieing them together with an "OR" statement but obviously, from my results, I don't understand how to do it properly because the output would be "-1" instead of something like "Roscoe Smedley, O.T." or "Roscoe Smedley, TRD"
What I tried:
Expr1: ([A]) & " " & (IIf([AOT]=0,"","O.T.")) OR ([A]) & " " & (IIf([ATRD]=0,"","TRD"))
Any help, even derisive and snide remarks, would be appreciated.