Link to home
Start Free TrialLog in
Avatar of GeorgeSalet
GeorgeSalet

asked on

The Output To action was canceled?? in Access

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
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GeorgeSalet
GeorgeSalet

ASKER

That did it, apparently my machine was keeping the file open, A reboot and all is well
Thanks
George