There is no need to use IIF(). This is a queyr and the "If" is implied in the Where clause.
@JMichaelM,
If you figured out the answer or someone else provided it, then the generous thing would be to post the solution here so that someone else might find it.