Hi,
I am trying to join two tables to produce a report. A Todo table has two fileds that reference the user table. I can successfully join on one field.
But trying to join on both fields i have problems. I have setup the relationships correctly i think. When i try to use inner join access only selects the records that have been opend and closed by the same person.
Any help appreciated.
I am trying to join two tables to produce a report. A Todo table has two fileds that reference the user table. I can successfully join on one field.
Code:
SELECT Users.User, ToDo.*
FROM todo INNER JOIN Users ON (Users.UserID = ToDo.Closedby)
Code:
SELECT Users.User, Users.User, ToDo.*
FROM Todo INNER JOIN Users ON (Users.UserID = ToDo.Closedby) AND (Users.UserID = ToDo.Createdby);
Any help appreciated.