oxicottin
10-14-2019, 12:06 PM
Hello, I have a report that isn't open BUT I want to save it to my desktop as a .pdf from a button and delete one if it has the same date and replace it. The report pulls data off the form I'm on. Also, if it needs t be open to save is there a way to open it hidden.
Dim strSViser As String
strSViser = Me.cboSupervisorName.Column(1)
DoCmd.OutputTo acOutputReport, "rpt_EmailDailyProduction", acFormatPDF, "C:\Users\" & Environ("username") & "\Desktop\" & Format(Date, "MM-dd-yyyy") & " " & strSViser & " Superlog.pdf"
Thanks,
Dim strSViser As String
strSViser = Me.cboSupervisorName.Column(1)
DoCmd.OutputTo acOutputReport, "rpt_EmailDailyProduction", acFormatPDF, "C:\Users\" & Environ("username") & "\Desktop\" & Format(Date, "MM-dd-yyyy") & " " & strSViser & " Superlog.pdf"
Thanks,