Hi Sonic,
[Code No] as far as I understood, should always be unique, however in the table it is set to Duplicates OK. I've no idea why this is the case.
As you showed, [Code No] is infact text, which solves my issue with the query, which is great.
Thanks for your help.