Results 1 to 2 of 2

Thread: What's going on!!!

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2000
    Posts
    46

    Angry

    I have an app that keeps giving me the following error message and I want it to quit!!!!!

    Run-time error '2501'
    The OpenReport action was canceled.

    I know why it is giving the error to me here goes:
    I am using access as my backend. I created 1 query and 1 report in access. I am from my vb app printing the 1 report using the data from the 1 query. The query ask the user for information, simply a client number. However if I press cancel on the input box for the query I get this crazy error. Is there anyway and can just cancel it and be done with it!!

    Thanks.

  2. #2
    Fanatic Member Gary.Lowe's Avatar
    Join Date
    May 2000
    Location
    In my sphere of influence
    Posts
    621
    I have had this error when developing in access.

    It normally happens when a user runs a report and clicks cancel on the dialog box that is sending the info to the printer.

    The way to stops this is to trap the error itself
    Gary Lowe
    VB6 (Enterprise) SP5
    ADO 2.6
    SQL Server 7 SP3

    OK I know my spelling and grammer is crap so don't quote me on it!

    To err is human to take the P! is only natural !!

    Click on the top section of image for Marcus Miller website and bottom section of image for 'Run For Cover' sound clip


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width