Report preview does not match printout

scalextric59

Registered User.
Local time
Today, 11:57
Joined
Dec 20, 2008
Messages
87
I have a report for which the user can select different options. For some of these options the report prints fine, but for others the report is a page with just the page header. In both cases the preview shows the correct data. I had some logic under the GroupHeader0_OnPrint. I moved it to GroupHeader0_OnFormat, but I still have the issue. Any idea why is this happening?
Thanks.
 
Ok. I found out what was the problem. I had a variable, kind of a sequence number, that I used in the function that gets the data. When printing, Access 'runs' the report again, it does not use the preview. Since the value of the variable was already the max value, the data was not being pulled. Solved the issue by reinitializing the variable on the OnPrint event
 
Thanks for posting back with your solution. It might help someone else in the future. :)
 

Users who are viewing this thread

Back
Top Bottom