Adding Column From Another Table

rob51852

Board Regular
Joined
Jun 27, 2016
Messages
190
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I'm trying to devise a query to add another column of data from another table.

I'm an Access beginner and am getting myself tied up in knots.

In plain English, I am trying to use the bowler ID in the BallByBall table to insert a new column with that bowler's bowling style from the Lineups table. In the Lineups table the bowler's ID is called playerId. See below. There will be many occurrences of the bowler ID and the playerId.

If anyone can point to how I can do this it would be appreciated.

Thanks

Untitled.png
Untitled1.png
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Not clear what you mean. Insert where?
You'd typically join related tables in a select query. The join(s) would be between fields that are common, and you'd use that query as the recordsource for your form. If that is player ID, it is not good design to call it PlayerID in one table and something totally different in another table as it seems you have. More like PlayerID > PlayerID_fk or PlayerIDfk (fk = foreign key). Some will also put PK in the primary key field. A year later, it's obvious what is what. Also, you don't repeat fields and data (other than related fields so that they can be joined in queries) as it seems you are doing. It's not good normalization practice. You are repeating match id, plus it seems you want to repeat bowling style as well. I think you'd do well to read up on normalization and compare what you learn to what you already have.
 
Upvote 0
In plain English, I am trying to use the bowler ID in the BallByBall table to insert a new column with that bowler's bowling style from the Lineups table. In the Lineups table the bowler's ID is called playerId. See below. There will be many occurrences of the bowler ID and the playerId.

What exactly are you trying to do that you are having trouble with? Are you trying to write a sql query? Or create a form?
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,431
Members
448,961
Latest member
nzskater

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