I have already test putting the query in desing mode but without openning the report, just sending it to pdf with the outputTo and changing the querydefs. This is still consumming memory, but i get to generate more reports since i don't open the report. However, the outputTo doesn't catch the out of memory error so if computer runs out of memory Access just freeze.