Quick question about my code. Two days ago I was able to save my report to my desktop, yesterday the pdf file began saving to C: My Documents. I do not remember making any changes to the code to change the file save location, any suggestions on how I can re-route to the desktop again?
Thank you!
Code:
Private Sub Command33_Click()
On Error GoTo Err_Command33_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "NFTSrpt"
stLinkCriteria = "[NFTSID]=" & Me![NFTSID]
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria, acHidden
DoCmd.OutputTo acOutputReport, stDocName, acFormatPDF, stLinkCriteria & ".pdf", , True
DoCmd.Close acReport, "NFTSrpt"
MsgBox "Report has been saved to Desktop"
Exit_Command33_Click:
Exit Sub
Err_Command33_Click:
MsgBox Err.Description
Resume Exit_Command33_Click
End Sub
Thank you!