YMCMb 0 Light Poster

Hi Guys,

I want to try and remove a Server Error in '/Program' Application.

When i try to delete a record which has related sub record, it cant delete obviously because of the relationship between the entities, however the average user does not no this, and they dont need to see this error i would like to display the error on the program in a friendly manner can anyone help please?

The common error i get is:

The DELETE statement conflicted with the REFERENCE constraint.....
but there are many different errors so is there ny way you can pick out each one and give a unique friendly error message to them ? if so how should i go around doing this? thanks :)