Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    387
    Thanks
    0
    Thanked 1 Time in 1 Post

    openreport cancel message (XP)

    When I use the NoData event to tell the user that there is not data and cancel the opening, i cannot suppress the message "The OpenReport action was cancelled."

    I know there is a simple answer but I just can't remember it. Please enlighten me.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: openreport cancel message (XP)

    If you open a report using DoCmd.OpenReport, canceling the report causes error 2501. The solution is to add an error handler to the code that uses DoCmd.OpenReport and let it ignore error 2501. see <post:=656,398>post 656,398</post:> for an example.

Posting Permissions

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