Note. I am not taking the outgoing ID in any of the example.
The code I sent uses the following:
Table: COR_Log, FIELD: ID {This ought to be the ID of the INCOMING order}
Table: Main_Table_Name, FIELD: IncomingFieldID {This is the field in the main table that ought to show which INCOMING ID...