deleting entries

Alice

New Member
Joined
Nov 27, 2002
Messages
39
Thanks for all your help in the past - I'd appreciate some clarity on the following point.

I have a products table, and a transactions table. They have a relationship based on the product code. If I delete a product from the product table, will its associated transactions be deleted as well? I can't seem to understand if that's what my book is saying? :rolleyes:

Many thanks,

Alice
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Alice,

I see what you mean now in your other post :)

To ensure that any related transactions will be deleted do this:-

Open the relationships window by choosing Tools, Relationships. You should see the Transactions and the Products tables. If not, click Relationships, Show All.

Next, there should be a line between Products and Transactions. Right click it and choose Edit Relationship. This will open the Edit Relationship dialog box. Tick the Enforce Referential Integrity and Cascade Delete Related Records. Click OK.

Now, when you delete a 'parent' record from the Products table all of its 'child' records will be deleted.
 
Upvote 0

Forum statistics

Threads
1,221,537
Messages
6,160,401
Members
451,645
Latest member
hglymph

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top