Thanks for your help theDBguy, but I can't make this work with my set up. It's a lot more complicated than the example in your blog and although I'm getting the expected results in the query, when running the report it just looks like duplicated records for each pallet number. I'm struggling to...