Have a look at the posts starting at the link bellow, and I guess it will give you an idea of what you are trying to accomplish.
http://forum.strataframe.net/FindPost1516.aspx
Basicaly, you are going to use the BeforeDelete event to test the user input.