Hi,<br><br>I am trying to change a value in a record if one of two conditions holds true. I can use a select query to get this to work yet not an update query.<br><br>Any suggestions? Here is the code that works for the select query.<br><br>SELECT trans.TRANSTYPE, TBLbrokers_table.broker, iif(<br>(((Trans.TRANSTYPE)="buy"
AND ((TBLbrokers_table.CA)=Yes) AND ((TBLbrokers_table.Buy_charge)=YES))=true,<br>'CABILL',iif(<br><br>(((Trans.TRANSTYPE)="cbuy"
AND ((TBLbrokers_table.CA)=Yes) AND ((TBLbrokers_table.Buy_charge)=YES))=true,<br>'CACXL','')) AS CAType<br>FROM Trans INNER JOIN TBLbrokers_table ON Trans.BROKER = TBLbrokers_table.Broker_code;