Hi,
I have a report which prints from a print button on a form using the standard macro method, I use the On Load of the report to populate one of the fields in it from an If statement, this works perfectly.
However I have another button which outputs to PDF by running code and the On Load does not seem to work (well the field is not populated).
I have a report which prints from a print button on a form using the standard macro method, I use the On Load of the report to populate one of the fields in it from an If statement, this works perfectly.
However I have another button which outputs to PDF by running code and the On Load does not seem to work (well the field is not populated).
Code:
Private Sub Command25_Click()
On Error Resume Next
DoCmd.OutputTo acOutputReport, "Bladereport", "PDFFormat(*.pdf)", , True, , , acExportQualityPrint
On Error Resume Next
End Sub