Ok, yeah that definitely helps. I didn't know where to add the dataset so I tried to do it from the toolbar, not the toolbox. Definitely makes a difference. Just one more question. My results are showing up in brackets with the category = value such as {quantity = 4,...} I deleted the parts equivalent to the ProdID in your statement "ProdID = OD.ProductID" but they're still there. How would I get rid of it?