We help IT Professionals succeed at work.

The Output To action was canceled?? in Access

GeorgeSalet
GeorgeSalet asked
on
56 Views
Last Modified: 2015-12-30
I am trying to export a report to a pdf file, My code has worked flawlessly then all of a sudden I receive this error.
" The Output To action was canceled"

I tried running the report on 2 machines both accessing from same server

Here is my code:
Private Sub Command23_Click()

On Error GoTo Err_Command23_Click


DoCmd.OutputTo acOutputReport, "Services", acFormatPDF, CurrentProject.Path & "\myReport.pdf"

FollowHyperlink CurrentProject.Path & "\myReport.pdf"

Exit_Command23_Click:
    Exit Sub

Err_Command23_Click:
    MsgBox Err.Description
    Resume Exit_Command23_Click
   
End Sub

Any suggestions??
Thanks
George
Comment
Watch Question

Infotrakker Software
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
That did it, apparently my machine was keeping the file open, A reboot and all is well
Thanks
George
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.