Results 1 to 4 of 4
  1. #1
    Exadd is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    12

    Question Run Time Error "2501" the OpenReport action was cancelled

    I'm trying to preview a report on ms access 2003 and its giving me the above error.The following is the effected area;


    Code:
    Private Sub cmdPrintPreview_Click()
       
      If Me.chkChqList = True Then
        DoCmd.OpenReport "rptChequeListInGrp", acViewPreview
      End If
    Please assist.

  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
    Does it open if you try to run it from the database window? If there are no records and you have code to cancel the report, you have to trap the error:

    http://www.baldyweb.com/ErrorTrap.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Exadd is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2012
    Posts
    12
    Thanks for your inputs what I did was reinstalled ms access office and it removed the error,I think the installment wasnt done correctly at the first place

  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
    Glad you got it sorted out.
    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: 15
    Last Post: 07-26-2012, 02:06 PM
  2. The OpenReport action was cancelled
    By Paul H in forum Reports
    Replies: 5
    Last Post: 11-11-2011, 02:27 PM
  3. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 PM
  4. Replies: 4
    Last Post: 01-06-2011, 10:52 AM
  5. Replies: 2
    Last Post: 12-02-2010, 02:35 AM

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