Just to set the scene further. Essentially what I am trying to do is return a table of Sales by Salesperson. If I can show the three names in cell in column B it would allow me to do a calculation on the amount in column C. The colour coding on the table is just to represent that the data is returned from 3 different tables.
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #D8E4BC, align: center"]CH_CODE[/TD]
[TD="bgcolor: #D8E4BC, align: center"]CH_USER6[/TD]
[TD="bgcolor: #B7DEE8, align: center"]CH_NETT[/TD]
[TD="bgcolor: #FCD5B4, align: center"]SALES_PERCENT[/TD]
[TD="bgcolor: #FCD5B4, align: center"]SALES_PERSON1[/TD]
[TD="bgcolor: #FCD5B4, align: center"]SALES_PERCENT1[/TD]
[TD="bgcolor: #FCD5B4, align: center"]SALES_PERSON2[/TD]
[TD="bgcolor: #FCD5B4, align: center"]SALES_PERCENT2[/TD]
[TD="bgcolor: #FCD5B4, align: center"]SALES_PERSON3[/TD]
[TD="bgcolor: #FCD5B4, align: center"]SALES_PERCENT3[/TD]
[TD="align: center"]2[/TD]
[TD="bgcolor: #D8E4BC"]MW24248[/TD]
[TD="bgcolor: #D8E4BC"]JOHN JONES[/TD]
[TD="bgcolor: #B7DEE8, align: right"]6000[/TD]
[TD="bgcolor: #FCD5B4, align: right"]50[/TD]
[TD="bgcolor: #FCD5B4"]JOHN JONES[/TD]
[TD="bgcolor: #FCD5B4, align: right"]50[/TD]
[TD="bgcolor: #FCD5B4"]GARY ROBINSON[/TD]
[TD="bgcolor: #FCD5B4, align: right"]10[/TD]
[TD="bgcolor: #FCD5B4"]MARK OSGERBY[/TD]
[TD="bgcolor: #FCD5B4, align: right"]40[/TD]
[TD="align: center"]3[/TD]
[TD="bgcolor: #D8E4BC"]MW24248[/TD]
[TD="bgcolor: #D8E4BC"]JOHN JONES[/TD]
[TD="bgcolor: #B7DEE8, align: right"]6000[/TD]
[TD="bgcolor: #FCD5B4, align: right"]50[/TD]
[TD="bgcolor: #FCD5B4"]JOHN JONES[/TD]
[TD="bgcolor: #FCD5B4, align: right"]50[/TD]
[TD="bgcolor: #FCD5B4"]GARY ROBINSON[/TD]
[TD="bgcolor: #FCD5B4, align: right"]10[/TD]
[TD="bgcolor: #FCD5B4"]MARK OSGERBY[/TD]
[TD="bgcolor: #FCD5B4, align: right"]40[/TD]
[TD="align: center"]4[/TD]
[TD="bgcolor: #D8E4BC"]MW24248[/TD]
[TD="bgcolor: #D8E4BC"]JOHN JONES[/TD]
[TD="bgcolor: #B7DEE8, align: right"]6000[/TD]
[TD="bgcolor: #FCD5B4, align: right"]50[/TD]
[TD="bgcolor: #FCD5B4"]JOHN JONES[/TD]
[TD="bgcolor: #FCD5B4, align: right"]50[/TD]
[TD="bgcolor: #FCD5B4"]GARY ROBINSON[/TD]
[TD="bgcolor: #FCD5B4, align: right"]10[/TD]
[TD="bgcolor: #FCD5B4"]MARK OSGERBY[/TD]
[TD="bgcolor: #FCD5B4, align: right"]40[/TD]
</tbody>
Whilst entering criteria against CH_USER6 in design view I can put "JOHN JONES", "GARY ROBINSON" OR "MARK OSGERBY" and return the three records. However if I write a statement asking if CH_USER6=SALES_PERSON2 it returns FALSE. I was hoping to use the IIF with the orange table to return what I need.