I took your advice and used the command text box to code it manually. But I used a UNION and it worked. See
Select TEMP1APP.code_b.CODE_B, TEMP1APP.BUDGET_COMMITMENTS.CODE_B,
TEMP1APP.BUDGET_COMMITMENTS.ACCOUNT_DESC, TEMP1APP.BUDGET_COMMITMENTS.ACCOUNT
From TEMP1APP.BUDGET_COMMITMENTS Left Outer Join
TEMP1APP.code_b On Code_b.code_b = budget_commitments.code_b
Union
Select TEMP1APP.code_b.CODE_B, TEMP1APP.BUDGET_COMMITMENTS.CODE_B,
TEMP1APP.BUDGET_COMMITMENTS.ACCOUNT_DESC, TEMP1APP.BUDGET_COMMITMENTS.ACCOUNT
From TEMP1APP.BUDGET_COMMITMENTS Right Outer Join
TEMP1APP.code_b On Code_b.code_b = budget_commitments.code_b
Order By 1 Desc, 4
I will try tracing it as well.