Reporting 2 x delisted company codes

Help! I am trying to record the following
BUY PWR -15/11/2002
change of code to CYO (also now delisted)
the problem is that I can’t seem to merge CYO at the date it occurred which was the 19/1/2012. It was delisted from the ASX on 10/3/2017.
It reverts back to todays date.
I’ve 'sold" the holding to delisted on 26/11/2021 for $150 and want to include that in the costs.