2
2005sporty
Hello,
I have a report where I am using code to generate the data in the report.
The data that is being rerun in the detail section and is creating inaccurate
results.
The issue I'm having is that data is being rerun. What is in the preview
screen is not what is printed (we have all our reports set to preview as the
users don't always print them after they're generated). I found some info
regarding this
"Access fires the events again when the report prints after preview, so you
need to reset your variables in the Report Header's Format event.
Report_Open does not fire again."
I am not that familiar with code and am not sure of the code that I need to
do this.
I have this in the Header now
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
End Sub
Any info would be greatly appreciated
I have a report where I am using code to generate the data in the report.
The data that is being rerun in the detail section and is creating inaccurate
results.
The issue I'm having is that data is being rerun. What is in the preview
screen is not what is printed (we have all our reports set to preview as the
users don't always print them after they're generated). I found some info
regarding this
"Access fires the events again when the report prints after preview, so you
need to reset your variables in the Report Header's Format event.
Report_Open does not fire again."
I am not that familiar with code and am not sure of the code that I need to
do this.
I have this in the Header now
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
End Sub
Any info would be greatly appreciated