>I'm not 100% clear on what you are doing. But, instead of making a query in the loop, can you query before the loop all the data you will need then you can just navigate in the data set within the loop. Or, is there too much data for this?
Well, it's like doing 100 seek in VFP from a table of one million records.