No unique index found for the referenced field of the primary table

bernese

New Member
Joined
Oct 24, 2015
Messages
13
I have an assignment where I need to design a database with special instructions. Within the db design are 2 tables: one table (Purchase Orders) with 2 primary fields identified (Purchase number and Computer Part #), the second Table is the Cash Disbursements Table that has Purchase number as a foreign key. I am trying to create relationships between these 2 tables using the Purchase Number key, but get the error noted above in the title. I do see that some of the Purchase numbers are duplicated in my tables. How do I get around this and design the table as requested in the instructions: with Purchase Orders Table having both Purchase Number and Computer Part Number as primary keys and linking the Purchase Number to the foreign key in the Cash Disbursements Table?

Any assistance would be greatly appreciated.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You are probably trying to enforce referential integrity, which you cannot do in this situation. If you were not told to do that, then don't and the message should go away.
For what it's worth, the assignment requirements seem bizzare. A PO table should be a header with PO number, create date, status, etc. etc. A PO line items table is where part numbers or their reference ID's should go.
 
Upvote 0

Forum statistics

Threads
1,214,561
Messages
6,120,245
Members
448,952
Latest member
kjurney

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