I'm creating a report, saving it as a pdf, then later using the pdf as an attachment to an e-mail. Everything works fine. However, I've decided to save the pdf on the user's computer rather than save on a shared drive. The error I get is the Output To was cancelled. I believe it's because of the space in the path of the Output file. Does that sound right? If yes, can I use the path below? How would I change the code? Thanks
DoCmd.OpenReport "rptAssignmentRIP", acViewPreview, , , acHidden
DoCmd.OutputTo ObjectType:=acOutputReport, ObjectName:="rptAssignmentRIP", _
OutputFormat:=acFormatPDF, OutputFile:="C:\Users\Public\Public Documents\SignInPlus\CareerDevelopment\TempDocs\AssignmentRIP.pdf"
DoCmd.Close acReport, "rptAssignmentRIP"
DoCmd.OpenReport "rptAssignmentRIP", acViewPreview, , , acHidden
DoCmd.OutputTo ObjectType:=acOutputReport, ObjectName:="rptAssignmentRIP", _
OutputFormat:=acFormatPDF, OutputFile:="C:\Users\Public\Public Documents\SignInPlus\CareerDevelopment\TempDocs\AssignmentRIP.pdf"
DoCmd.Close acReport, "rptAssignmentRIP"