myblueshadow
New Member
- Joined
- Aug 4, 2011
- Messages
- 12
I am trying to format a report using an IIF statement. Basically I have a list of 3 possible names under a group. Each group could have 1-3 names included. Each name is housed in a different column within the query. I would like to do an IIF statement to not show Staff1 if it is blank and so on, and move the next non-blank staff to the top so there aren't large empty spaces. I tried this:
=IIF([Staff1] IsNull, [Staff2], IIF([Staff2] IsNull, [Staff3], Null))
but, obviously, it didn't work. Help!
=IIF([Staff1] IsNull, [Staff2], IIF([Staff2] IsNull, [Staff3], Null))
but, obviously, it didn't work. Help!