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

Intercept Duplicate Key error

Status
Not open for further replies.

lespaul

Programmer
Feb 4, 2002
7,083
US
I have a process that the users continue to try to do multiple times. Is there a way that I can catch the Duplicate Key error and return a message that this process has already been completed?

Thanks,
leslie
 
use a try, except statement. and in the except block, display an error message saying that the process has already completed

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top