CodeRecords function

Create a list of code records.