This is a continuation from my earlier thread. The error I am now getting is :
2501
the output to Action was cancled.
Code:
Private Sub Command26_Click()
Dim myPath As String
Dim strReportName As String
myPath = "C:\Documents and Settings\"
strReportName = [Quote_ID]
DoCmd.OpenReport "QuoteMain", acViewPreview
DoCmd.OutputTo acOutputReport, "", acFormatPDF, (myPath & strReportName & ".PDF")
End sub
It has to be the formatting with the text i have put in bold. But as im no expert in VBA I'm hoping someone could point out where i am going wrong.
thanks.