Linking two table in Access

dnjtdjq

New Member
Joined
Jan 30, 2017
Messages
7
Hello,

Im an access beginner and struggling with linking and updating information within two tables.

So there is my table 1 called Ingredients table and I have ingredients ID, ingredients name and price for the first three colums.

I have another table called Recipe table and my columns consists of Recipe ID, ingredients and price.

What I want to do is, if I type ingredients name and price in Table 1, say "eggs" and "$6"

and in my Recipe table if I type eggs the price will be updated accordingly, in which case $6.

How can I do this?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Typically you would have 3 tables for this:

Tbl_Ingredients 'Used to store all your products
Tbl_Recipes 'Used to store all your recipe header info
Tbl_RecipIngredients 'Used to link the other 2 tables

You would not normally store the values in 2 tables, this is achieved by using queries to link the data. i.e.

Tbl_ingredients would have a product ID, description and unit cost.
Tbl_Recipe would have a recipe ID, description plus any other information that is relevant to the recipe (excluding ingredients)
Tbl_RecipeProducts would have recipe ID, Product ID, No. of units

The query you would create would then Pull the recipe details from the recipe table, the Ingredients details from the Ingredients table and the cost by multiplying the unit cost (from the Ingredients table) by the no of units from the RecipeIngredients table.
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,221,707
Messages
6,161,411
Members
451,704
Latest member
rvan07

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