Please keep a copy of the data so that we can take a look.
If you change the order of the rows with the zero quantities, does that make a difference to the behaviour? (In other words, don't have consecutive rows containing zeros for the quantity.)
_________________________
Andrew Bates