error in deleting a record which is foreign key

error in deleting a record which is foreign key

Post by Kris » Tue, 29 Aug 2000 04:00:00



Does anyone have any idea how to handle error arising from deleting a
recordset which is a foreign key at another table?
Thank you.

Kris

 
 
 

error in deleting a record which is foreign key

Post by Samuel Frankly » Tue, 29 Aug 2000 04:00:00


Trap the error and examine the error message using
On Error Goto and Instr. However this is specific to certain
database and certain data access method.

Other way is check the table where the record becomes foreign key
and notify the user that the record still used at other table


> Does anyone have any idea how to handle error arising from deleting a
> recordset which is a foreign key at another table?
> Thank you.

> Kris