For about a year now, I have been collecting data from machines around to plant. I have been exporting the report without issue since then. All of the sudden I am getting an error saying the format in which I am exporting is not supported 'error 2282'. This has me scratching me head because it has worked flawlessly for a year now. Below is the code where it gets hung up on. Any help would be greatly appreciated!
Public Function Export_Report()
Dim myPath As String
Dim Myfilename As String
DoCmd.Requery
Me.Refresh
'Exports the code to the location
myPath = "G:\Electronic Sheets\Reports"
Myfilename = "Spadone SOS Report.pdf"
DoCmd.OutputTo acOutputReport, "Spadone_Reports", acFormatPDF, myPath & Myfilename, False, , , acExportQualityPrint
End Function