P
PSI
In a nutshell I have multiple "things" each of which can have multiple
Address's. I want to set it up so deleting a "thing" deletes all of
its Address's. So at the moment I have:
Table Business
==========
BusinessID - autonumber, PK
Name - text
Table Employee
==========
EmployeeID -autonumber, PK
Name - text
Table Address
============
AddressID - autonumber, PK
Address - text
Type - int ( Bill=1, Ship=2, Home=3 etc )
Table BusinessAddress
==============
BusinessID - number, references BusinessID,PK
AddressID - number, references AddressID,PK
Table EmployeeAddress
==============
EmployeeID - number, references EmployeeID,PK
AddressID - number, references AddressID,PK
RFI and cascade delete are set on all relations.
When I delete a Business Record the corresponding BusinessAddress
records are deleted but the Address records aren't. ( Likewise for
Employee ).
Although I'm new to Access/DB design it seems this should be a
relatively common thing to do but I've been chasing my tail for days.
Any suggestions would be greatly appreciated.
Thanks
Frank
Address's. I want to set it up so deleting a "thing" deletes all of
its Address's. So at the moment I have:
Table Business
==========
BusinessID - autonumber, PK
Name - text
Table Employee
==========
EmployeeID -autonumber, PK
Name - text
Table Address
============
AddressID - autonumber, PK
Address - text
Type - int ( Bill=1, Ship=2, Home=3 etc )
Table BusinessAddress
==============
BusinessID - number, references BusinessID,PK
AddressID - number, references AddressID,PK
Table EmployeeAddress
==============
EmployeeID - number, references EmployeeID,PK
AddressID - number, references AddressID,PK
RFI and cascade delete are set on all relations.
When I delete a Business Record the corresponding BusinessAddress
records are deleted but the Address records aren't. ( Likewise for
Employee ).
Although I'm new to Access/DB design it seems this should be a
relatively common thing to do but I've been chasing my tail for days.
Any suggestions would be greatly appreciated.
Thanks
Frank