You can use the same query, but add the WHERE clause to show only A or B values.
SELECT IIf([CONDITION]="A",[ID],[FIRST NAME]) AS FIELD1, IIf([CONDITION]="A",[EMP],[LAST NAME]) AS FIELD2, PROFIT.CONDITION
FROM PROFIT
WHERE PROFIT.CONDITION=[Enter the Condition]