I had to add another table to this DB. It was working fine until some duplicate records were added to the DB. By duplicate, I mean that several revisions of the Stock_Code number have been added, e.g. originally all records were like :
Stock Code Revision
0800-001 1
0800-005...