Results 1 to 2 of 2
  1. #1
    lzook88 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    75

    OutPutTo was Cancelled

    Hey guys.. I am using a docmd.outputto to pdf a form that is really a dynamic report based off of a user entry form..



    here is the code I have

    Code:
    DoCmd.OpenForm "CF33", acNormal, , , acReadOnly, acWindowNormal
    
    DoCmd.OutputTo acOutputForm, "CF33", acFormatPDF, "C:\Users" & fOSUserName() & "\Desktop\CF33_" & [Forms]![CF33]![TXTNUM1] & ".pdf", False, , 0, acExportQualityPrint
    and then when i hit the button on the main form i get this

    Code:
    run-time error '2501': the outputto action was cancelled

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Check the path. I don't think it resolves to a valid one (missing "\").
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Outputto PDF cancelled
    By tinyb in forum Programming
    Replies: 12
    Last Post: 10-13-2015, 08:29 AM
  2. Replies: 1
    Last Post: 09-12-2014, 03:15 AM
  3. Error When Event is Cancelled
    By tylerg11 in forum Forms
    Replies: 1
    Last Post: 02-07-2012, 09:48 AM
  4. OpenReport cancelled
    By wharting in forum Reports
    Replies: 15
    Last Post: 11-11-2011, 02:34 PM
  5. The OpenReport action was cancelled
    By Paul H in forum Reports
    Replies: 5
    Last Post: 11-11-2011, 02:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums