Nothing understandable?~?~~??Be aware that if you have an OnFormat event it doesn't fire in Print Preview - and, just to be symmetrically a pain in the toches, the OnPrint event doesn't fire in Report View.
And... of COURSE in MicroPain's transfinite wisdom, you can't just copy the OnPrint routine to the OnFormat routine or vice-versa because they have different arguments.
This will be significant if you have a wizard build the report and you ask it to build summary totals in a given section footer.
What does that mean?Nothing understandable?~?~~??
Be aware that if you have an OnFormat event it doesn't fire in Print Preview - and, just to be symmetrically a pain in the toches, the OnPrint event doesn't fire in Report View.
And... of COURSE in MicroPain's transfinite wisdom, you can't just copy the OnPrint routine to the OnFormat routine or vice-versa because they have different arguments.
This will be significant if you have a wizard build the report and you ask it to build summary totals in a given section footer.
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
MsgBox "Hello format"
End Sub
Private Sub ReportHeader_Print(Cancel As Integer, PrintCount As Integer)
MsgBox "Hello Print"
End Sub