You have composite keys. Add an Autonumber PK to your junction tables and put a unique multi-field index on the combination of FKs. Then export.
Export Access tables to SharePoint list
I have built a database using Access which has several junction tables. When I try to export those tables to SharePoint, I get the following message (see below). The data types in all of my junction tables are 'Number' relating to the primary key of it's separate related table (see image below). Do I need to do anything differently to export these to SharePoint or is it not possible?
Microsoft 365 and Office | Access | For business | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
13 answers
Sort by: Most helpful
-
-
George Hepworth 22,220 Reputation points Volunteer Moderator2022-04-04T23:19:45+00:00 In addition to what Scott indicated, you should also be aware that SharePoint requires the use of Lookup fields to enforce referential integrity on related tables. I do not think they are created automatically when you export the tables to SharePoint lists unless you have already defined them in the Access table. This is the only time I would recommend using Lookup fields in tables in Access.
-
Anonymous
2022-04-05T15:48:09+00:00 In addition, I just noticed that when I export to SharePoint, multiple list of the same table are being created (e.g., Consumer, Consumer_1, Consumer_2, etc.). Should this happen or have I set things up incorrectly.
-
George Hepworth 22,220 Reputation points Volunteer Moderator2022-04-05T16:27:28+00:00 Probably not. But we can't see how you exported the tables, unfortunately.
Did you implement the Lookup Fields as suggested?