Instead of using the type AccountCode the transaction should be based upon the AccountNumber.
AccountCode
AccountNumber