Need Help Linking Primary and Foreign Key

mthrendyle

New Member
Joined
May 23, 2018
Messages
1
Hi there, I am new to Access and haven't used query before, so explaining things in query to me is probably a bit useless.
Anyway, I want the ProductID's to show up in my Employee field, but I am having trouble doing so.
2hq8fw5.png


I was able to achieve this in my Materials table with Employee ID, which had autonumber as the data type.
11mc6zt.png


Basically I want to be able to achieve the same thing from my materials table, but with my employees table, but with the product ID if that makes sense.

Thanks!
 

Some videos you may like

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Leandroarb

Board Regular
Joined
Oct 7, 2014
Messages
157
Hi!
Is this possible only in queries, okay?
For this, the tables used in the query must have some field or fields in common, in which the information is related.
Is there a field in the tables?
 

xenou

MrExcel MVP
Joined
Mar 2, 2007
Messages
16,794
Office Version
  1. 2019
Platform
  1. Windows
To be honest, I can't think of any way you'd need a productID in an Employees table. Only Employee information should be in the Employees table (so you'd expect EmployeeIDs but never ProductIDs).
 

Robby19

Board Regular
Joined
Mar 19, 2018
Messages
227
Unless each Employee can only sell 1 Product I am not sure what is to be gained by this. Same with the Materials. Can each employee only handle 1 type of Material?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,892
Messages
5,598,693
Members
414,254
Latest member
MarieCo

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
Top