Thanks for all your help so far.
The tables are imported through an obcd from a Navision table so normalisation of the tables is not really an option I think.
I'm also using only one table for the prices in my query it's just that all the prices are in the same table, including codes. So to...