472,354 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

Error 2501 The OpenReport action was 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

Nov 13 '05 #1
5 28643
fe********@gmail.com wrote:
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
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
fe********@gmail.com wrote:
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 :)


Open your code window and to to the
DoCmd.OpenReport "rptSYS_ChangeInARDaily", acViewPreview
line. On the vertical bar, click on it so you can step through the
process. Then exectute from the bad machine and follow the steps the
code takes. See where this program takes you.

Sometimes I place Msgboxes like "I am Here" and "Here I am again" to see
where execution processes are being performed.

Do you have any code in the report? Maybe there is something being done
that stops aborts the code. That is why stepping through the code may
help. Good luck.
Nov 13 '05 #4
hi
I have got exactly the same problem, and I cannot fix it.
can you know what software your user has installed on his machine?
Can you make this test : open your database on the machine you have the
problem, modify a form, and view the code (use the menu bar "view, code")
can you tell me if it is working?
thank you
Eric

Nov 13 '05 #5
I fixed it
just uninstall your printer, and re-install it
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ColinWard | last post by:
My previous message was blank so Im trying again. I have a button on a form which opens the Import dialogue box. This works fine except if I click on the "X" to close the form I get Run-Time Error...
5
by: Bob | last post by:
Hi Everybody I hope you can help. 2 related questions. 1. I am looking for a way to replace the confusing message box that comes up when a user trys to open a form without putting data in...
0
by: mondo3 | last post by:
Someone had previously created an access 2000 database (tables and forms together in a single .mdb file). The .mdb file was located on a server, and two users (on two separate computers) share...
4
by: Keith | last post by:
I have the following code in the On No Data event of a report: **** On Error GoTo err_trap MsgBox "No items matching criteria.", vbInformation, gcApplication Cancel = True err_trap: If...
8
by: sara | last post by:
I have a report that runs fine with data. If there is no data, I have its NO Data event sending a MsgBox and cancelling the report. Then it seems I still get the 2501 message on the Open Report...
2
by: dkohel | last post by:
What is wrong with the following code? I am trying to filter a form based on the selection of a combobox named cblPRD Dim currentFilter currentFilter = " = '" & Me!cboPRD & "'" Filter =...
3
by: razjafry | last post by:
Hi, I am trying to create a combo box to search record on the base of ID but it gives runtime error message 2501 "the openform action was cancelled" all the times. I posted this question before but...
17
by: trose178 | last post by:
Good day all, I am working on a multi-select list box for a standard question checklist database and I am running into a syntax error in the code that I cannot seem to correct. I will also note...
7
sassy2009
by: sassy2009 | last post by:
Hello, I am running an insert query from xl spreadsheet using the DoCmd.RunSQL to insert values from the spreadsheet into the Access database. When i run this query it gives an error saying "...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.