I would check to make sure that there is NO code in the Data Environment of the Report as well. Make sure that nothing is in any of the DE Events. I write code all the time in the INIT Event to create cursors and pull data from tables into a cursor for the Report so it is self contained. I even write code in the INIT to RETURN .F. if there aren't any records retrieved and then popup a MESSAGEBOX() for the end user to tell them so.