As you all probably know, a Sharepoint task list has an "Assigned To" column. When I import a task list in Access, I get a table for the list and another table, "UserInfo" with the users for that list (those are the same users listed under Permissions for that list in Sharepoint). This UserInfo table has data such as the user's id, title, account, email, department and so on.
When I run the following query:
SELECT *
FROM FirstList
UNION ALL
SELECT *
FROM SecondList;
The "Assigned To" field changes to the ID of the person from UserInfo. Their name is under the "Title" field of the UserInfo table.
How should I modify the SQL query to place the title in the "Assigned To" column?
EDIT: here is an example
In FirstList I have a row with the following values: "Do this" "John Doe" "Not Started" corresponding to the "Title", "Assigned To" and "Status" columns. In UserInfo I have a row with "30" "John Doe" "f2rdf" as values for "ID", "Title" and "Account".
After I do the union, instead of John Doe I would see the value 30. So how do I specify that I want to see the value of the title, not the value of the ID? Something like [Assigned To].Title? (which unfortunately doesn't work)