ref.integrity problem

Hello Everybody,

I am trying to put ref. integrity in my tables.  When I
execute my program and test if it works, the program
"crash". Here's my tables:

Table1
NoModele  (*)
NomModele

Table2
NoSerie (*)
NoModele
Valeur

Table3
NoReparation (*)
NoSerie
NoReparateur
Date...

Table4
NoReparateur (*)
NomReparateur
Adresse.....

I've linked table1 with table2, table3 with table 2 and
table3 with table4.

The message I have when it's crashing is "Project
Gestion.exe raised exception class EDBEngineError with
message "Master record missing'  Process stopped.  Use step
or Run to continue.

Actually, it does what it supposes to do i.e. not accepting
new NoSerie when the Model does not exist but what I want it
to do is "give a message to the user and go on with  the
program."

How can I do that?? Do I have to program something to avoid
crashing.

Thank you for your help

P.S.  I'm using delphi 3.0