To start off the simulation, here is the Clients table in datasheet view. The record you will work with is already highlighted.
First thing is to see what happens when referential integrity is turned on, without Cascade Delete set to Yes. Press the Delete key.
This is the message received when referential integrity is turned on, without Cascade Delete set to Yes. Now it is time to go set Cascade Delete to Yes. Click OK.
Close the Clients table by clicking the second x down from the top right-hand corner.
Click the Tools menu choice.
Now click the Relationships option in the Tools menu.
Here is the now familiar Relationships Layout window. Double-click the line between the Clients and Projects tables.
Now you can see the Edit Relationships dialog. Click the Cascade Delete Related Records option.
Thats all there is to do for the relationship between Clients and Projects. Click OK.
As you can see here in the Relationships Layout window, you still have to set the Cascade Delete option for the Projects and Hours relationship. Doubleclick the line between the Projects and Hours tables.
Once again you can see the Edit Relationships dialog. Click the Cascade Delete Related Records option.
Click the OK button to accept the change.
Now you are again brought back to the Relationships Layout window. All the changes necessary have been made. Now its time to test the changes. Click the second x down from the top right-hand corner.
To test the changes made we need to open the Clients table in Datasheet view again. Click the Open button.
Now click the record selector for the record of Textiles International. This is the gray button located on the left of the record.
Ok, now is the moment of truth. Press the Delete key and see what happens.
This is the message you will now receive because Cascade Delete is now turned on for all relationships of Clients.