Forum Discussion
JosephNierenberg
Oct 12, 2020Iron Contributor
Collecting same value from different tables
I have been unable to accomplish what I think is a simple task, so I'm throwing this to the experts.... One Access database syncs with three SharePoint lists that live in three different subsites...
George_Hepworth
Oct 13, 2020Silver Contributor
This will probably be slower, but it should work. Create a UNION query with three select clauses:
SELECT Field1, Field2, YourPriorityFieldGoesHere
FROM SHAREPOINTLIST1
WHERE
YourPriorityFieldGoesHere = "High"
UNION
SELECT Field1, Field2, YourPriorityFieldGoesHere
FROM SHAREPOINTLIST2
WHERE
YourPriorityFieldGoesHere = "High"
UNION
SELECT Field1, Field2, YourPriorityFieldGoesHere
FROM SHAREPOINTLIST3
WHERE
YourPriorityFieldGoesHere = "High"
- JosephNierenbergOct 19, 2020Iron ContributorThank you. I think this might work, but I'm both busy and inexperienced in what it takes to create this, so unfortunately it will be a couple of days until I can return here to mark this as an answer (or otherwise to reply).