Results 1 to 4 of 4
  1. #1
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150

    RunTime Error 2212

    Hi

    Below is the code i'm using to print the report

    Code:
    DoCmd.OpenReport "Report2", acViewNormal
    Click image for larger version. 

Name:	Untitled2.jpg 
Views:	12 
Size:	34.3 KB 
ID:	34769



    Now as per above image when i click on the Save button it saves the report, But when i click on the cancel button i get "Run time error 2212 : Microsoft Access couldn't print your object"

    How can i solve this?

  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,518
    Add error handling:

    http://www.baldyweb.com/ErrorTrap.htm

    and leave out the message box for that error.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150
    Hey pbaldy

    Awesome that worked. Thanks alot mate

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    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. Replies: 3
    Last Post: 02-26-2016, 12:34 PM
  2. Replies: 2
    Last Post: 08-22-2015, 11:26 AM
  3. Runtime 438 error
    By Thompyt in forum Programming
    Replies: 2
    Last Post: 06-04-2015, 10:35 AM
  4. Replies: 2
    Last Post: 10-15-2014, 04:23 AM
  5. Replies: 13
    Last Post: 06-12-2012, 09:52 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