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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing All Forms + Catching Errors from DB

Status
Not open for further replies.

eveCalypso

Programmer
Apr 29, 2003
134
GB
Good Day All,

I have two questions. I want to check for any open Forms related to my application when the application exits, and close any if they are open. What is the best way to do this?

Secondly, I am doing quite extensive error handling of my own, but I would like to intercept standard DB (SQL 2000) errors like Duplicate Primary Key and Foreign Key Constraints when they happen and give the user a friendlier message. I have recently converted all my DB operations to be Stored Procedure driven. How can I catch these errors before Access displays the standard message and what would be the best way to handle this scenario??

ANY help or pointers to references would be appreciated.

Best Regards,
EvE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top