Hi again 
I am stuck again..... I have a form where I can generate different reports with different variables.
What will be quite common is that the there will be no report with the given variables. I did the "on no data" event with a msgbox and "docmd.cancelevent". It works fine but access gives me an error message which says:
Run time error 2501
The OpenReport action was canceled.
Which is exactly was is supposed to happen....how do I get rid of that error message?

I am stuck again..... I have a form where I can generate different reports with different variables.
What will be quite common is that the there will be no report with the given variables. I did the "on no data" event with a msgbox and "docmd.cancelevent". It works fine but access gives me an error message which says:
Run time error 2501
The OpenReport action was canceled.
Which is exactly was is supposed to happen....how do I get rid of that error message?
