OnInsertRecord() is triggered only when the records get inserted into the table, i.e when the Key fields are entered. In this case Transfer-from Code and Transfer-to Code are not part of keys for the Table Transfer Header. You can put the code in the OnValidate() Trigger of both the fields.
↧