Hello,
I have a form with a cmd button which executes a macro to export a report of this form via email as a pdf file.
The file shows the same name of the report (report1).
I was thinking to change it's name and have used a solution which have already uses with the printcurrentrecords on forms and orks great.
In the On Current event of the report have typed the following:
Private Sub Report_Current()
' Me.Caption = (Me.FNMAE) & " " & (Me.LNAME) & " - " & (Me.FileNo)
End Sub
What I would like is to rename the file in pdf with the records indicated below. Unfortunately, when I run the macro, it still shows the name of the reports (report1).
Thank you for any assistance.
I have a form with a cmd button which executes a macro to export a report of this form via email as a pdf file.
The file shows the same name of the report (report1).
I was thinking to change it's name and have used a solution which have already uses with the printcurrentrecords on forms and orks great.
In the On Current event of the report have typed the following:
Private Sub Report_Current()
' Me.Caption = (Me.FNMAE) & " " & (Me.LNAME) & " - " & (Me.FileNo)
End Sub
What I would like is to rename the file in pdf with the records indicated below. Unfortunately, when I run the macro, it still shows the name of the reports (report1).
Thank you for any assistance.