Hmmm...well, off the top of my head, I would use the temp table idea. Would you be doing one item at a time, or doing a batch of items?
I would open a recordset, grab the quantity and use that for a For Next loop to add the Item number to the temp table. A bit busy here at work right now...but...