Hello, i have a question and hope someone can help me out here 
In Access i have this VBA code to export a PDF file:
Private Sub Command17_Click()
DoCmd.OutputTo acOutputForm, "TrainingCalenderForm", acFormatPDF, "C:\Users\User\Documents\Trainingmap\Training.pdf"
End Sub
But when i click the button i keep getting this error:
Run-time error '2059':
Microsoft Access cannot find the object '|1'.
My head is starting to hurt can someone see what i'm doing wrong :banghead:

In Access i have this VBA code to export a PDF file:
Private Sub Command17_Click()
DoCmd.OutputTo acOutputForm, "TrainingCalenderForm", acFormatPDF, "C:\Users\User\Documents\Trainingmap\Training.pdf"
End Sub
But when i click the button i keep getting this error:
Run-time error '2059':
Microsoft Access cannot find the object '|1'.
My head is starting to hurt can someone see what i'm doing wrong :banghead: