Openreport Error 2501
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
Ms Access Error 2501 The Openform Action Was Cancelled
workings and policies of this site About Us Learn more about Stack access run time error 2501 outputto action was canceled Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Error 2501 Access
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join access 2010 error 2501 them; it only takes a minute: Sign up Access: Canceling Report generation causes error 2501 up vote 0 down vote favorite can't believe I am losing so much time on this one. I have an order form, and when I click on a button "reports", a dialog pop ups with a list of different reports to chose from. Double-clicking run time error 2501 the runmacro action was canceled selects and starts the correspondent report. On one of these reports, there is an unbound text box I need the user to enter data with. The ControlSource of this field is set to its Name property. When the report is started, an input box appears with an OK and a Cancel button. Whenever I enter some data, all is fine. But when I click on Cancel, the app crashes and I get an errormessage: "Runtime Error 2501: The Action OpenReport has been canceled" (translated from German). The Report is called through this code: DoCmd.OpenReport vBerichtName, nAnsicht End If On Error Resume Next DoCmd.Close acForm, "F_BerichtDrucken" On Error GoTo 0 1) Why does the error handling not kick in? 2) I googled and found lots of weird solutions for this, like the official Microsoft one saying you need to install/update a printer driver (come on...). None helped. I am doing this for a friend and I normally work on linux/php,java, etc. I apologize if the solution is somewhat obvious or something like that. ms-access report share|imp
Ask a Question Need help? Post your question and get tips & solutions from a community of 418,616 IT Pros & Developers. It's quick & easy.
Run Time Error 2501 The Save Action Was Canceled
Error 2501 The OpenReport action was cancelled... HELP! P: n/a fearblanco Hello - run time error 2501 the runcommand action was canceled I am receiving the below error message when attempting to open a report. This database is used by approximately 20 users and only one user is having this problem (even I can't duplicate this error on my own PC). The command being used is DoCmd.OpenReport "rptSYS_ChangeInARDaily", acViewPreview OR DoCmd.OpenReport "rptSYS_ChangeInARDaily", acViewPreview, , http://stackoverflow.com/questions/1492231/access-canceling-report-generation-causes-error-2501 "Collector= '" & cmbAnalyst.Value & "'" This one particular user gets the following message: Error: 2501 - ErrorDesc: The OpenReport action was canceled Can anybody explain why this would happen to only one person? The data is there, so I can't see why the report would cancel. Please help, fe********@gmail.com Nov 13 '05 #1 Post Reply Share this Question 5 Replies P: n/a Salad fe********@gmail.com wrote: https://bytes.com/topic/access/answers/204846-error-2501-openreport-action-cancelled-help Hello - I am receiving the below error message when attempting to open a report. This database is used by approximately 20 users and only one user is having this problem (even I can't duplicate this error on my own PC). The command being used is DoCmd.OpenReport "rptSYS_ChangeInARDaily", acViewPreview OR DoCmd.OpenReport "rptSYS_ChangeInARDaily", acViewPreview, , "Collector= '" & cmbAnalyst.Value & "'" This one particular user gets the following message: Error: 2501 - ErrorDesc: The OpenReport action was canceled Can anybody explain why this would happen to only one person? The data is there, so I can't see why the report would cancel. Please help, fe********@gmail.com It's possible you have the OnNoData to cancel the report or you have a Cancel in the OnOpen event. If so, in the calling form, add to your error routine If Err.Number <> 2501 then msgbox Err.Description Resume YourExitStatementLine Nov 13 '05 #2 P: n/a fearblanco This would make sense but the other 19 people using the same exact report dont have this problem. and there is no OnNoData event or OnOpen event for this report. I'll try what suggested and hope it works :) Nov 13 '05 #3
be down. Please try the request again. Your cache administrator is webmaster. Generated Sun, 23 Oct 2016 20:05:49 GMT by s_wx1085 (squid/3.5.20)