Go to Register > Manage Register.
Select the student from the single student dropdown box and set the date you wish to amend the code for.
Click to show former students and then click view register. You will then be able to amend the code as you would with any current student..