IIf(condition, true path, false path)
The IIF() has three operands any or all of them can be replaced by complex values. So, condition can be compound ie.
IIf(somevalue Like "*H" OR somevalue2 Like "*" OR somevalue3 Like "*", true path, false path)
The true and false paths can be replaced by complete IIf() statements. You just have to watch your parentheses.
IIf(condition, IIf(condition, true path, false path), false path)
or
IIf(condition, true path, IIf(condition, true path, false path))
or
IIf(condition, IIf(condition, true path, IIf(condition, true path, false path)), false path) -- it can get really hard to understand, really quickly so at some point, you should create a UDF which will be much easier to construct and be more understandable by a human.
I would normalize my table. You have a repeating group. When you have more than one of something, you have many and many requires a child table.
What you are doing with Like is extremely inefficient so I hope you don't have a lot of rows in your table. The Like "*xxxx" forces a full table scan. There are better methods but they require tablizing the data. You would create a table of the code values and add a group field. Then rather than using Like *, you could use = to a group value.