cascade delete problem

T

Tonymac12

When I delete customer info from a linked table, the customer info is removed
from the other tables in the database. I need to be able to delete old
customer info in the linked table but keep the cutomer info in the other
tables. I am using a lookup table to get customer info from the linked table.
Cascade delete is not checked. The Database is Access 97. Thanks.
 
T

Tim Ferguson

(e-mail address removed) (Tonymac12) wrote in @mb-m18.aol.com:
I need to be able to delete old
customer info in the linked table but keep the cutomer info in the other
tables.

This does not make sense. The whole point of relational integrity is to
prevent "orphanning" of records in precisely this way. You can only get
into trouble with an invoice posted to customer 108834 and no way of
knowing who that is. If the invoice is needed, then you need the customer
record. If it isn't, then delete the whole lot.

You might like to read some more about R theory and database integrity.

B Wishes


Tim F
 
T

Tonymac12

Could you or somebody recommend a creative solution to this problem? I am
stuck with the present basic design of the DB. Thanks.
 
R

Rick Brandt

Tonymac12 said:
Could you or somebody recommend a creative solution to this problem? I am
stuck with the present basic design of the DB. Thanks.

Add a Yes/No field that you can use to "mark" them deleted without actually
deleting them.

On new records you can filter out the "deleted" choices, but they are still
there to support historical records.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top