Print report causes refresh of data in subreport, help stop it please.

jwleonard

Registered User.
Local time
Yesterday, 21:54
Joined
Apr 13, 2005
Messages
83
I have a report with two subreports on it; there is no record source on the main report. The criteria for the report comes from a form where the user selects the report type, the start date and end date. Then they click a command button that opens the report in preview for review prior to printing. It then clears out the data the user put on the criteria form to get it ready for the next use. The user then prints the report and this is where my problem comes in. When they print, the subreports get refreshed and now that the user input data has been cleared off the form the report comes out printed without any records shown even though they were there on the preview. It worked for a while then suddenly quit working a few weeks ago. It happens in both 2007 and 2003 and I can make it work if I don't clear the data from the input form after the report is opened. Does anyone know what could cause this?
I could leave it so the data on the input form is not cleared and put in a reset button to clear it after the report is closed or have it cleared after the report is closed. I don't really want to do it that way though because I would need to do the same for the other reports and they a working fine the way it is now; this is the only one I am having problems with.
 
Last edited:
AFAIK the report is completely run again when you go from prieview to print, sorry.
 
That is what it looks like to me too. The only thing that has me wondering is I have other reports with subreports that are set up the exact same way and they work fine. I tried going through and comparing properties and didn't find anything that made a difference.
 
Your subreports are picking up parameters from a form that has been cleared?
 

Users who are viewing this thread

Back
Top Bottom