Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent Error messages from being displayed (switch UserContol to Fals

Status
Not open for further replies.

michaelgavtinccom

Programmer
Jul 25, 2002
4
IL
Because I use Access Runtime, I start Access be Shell funcion.
In case of any error during report generation, an Error message appears and asks to Click OK.
It is not acceptable by me, since report printing is hidden.
I don't know how to avoid error messages appearing.
If I create Access using Automation, than in case of error Access throwes exception.
This behavior is disable for me.
I think I could solve this problem if I knew how to switch UserControl property to "FALSE".

Thanks a lot for any idea.
Michael
 
Hi

Are you talking about when user cancels report, as for example if there is no data to report?

If yes you need to trap error 2501, which is raised by the user canceling the report

Regards

Ken Reay
Freelance Developer
kenneth.reay@talk21.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top