I'm not clear what you are trying to achieve here, but it looks like you might be trying to return data from two tables in a many-to-many relationship type modelled by a third table, but with all values from both referenced tables returned regardless of whether there is a row in the third table which maps to the relevant rows in both referenced tables. If so you would need to return the Cartesian product of the two referenced tables, which is done by including both tables in the query, but without a specific join. You can then indicate which of the rows represent an actual relationship value, and which do not, by means of the EXISTS predicate and a subquery. The query below is an example which used data from my StudentCourses demo:
SELECT StudentID, FirstName, LastName, CourseName,
EXISTS(SELECT *
FROM StudentCourses
WHERE StudentCourses.StudentID = Students.StudentID
AND StudentCourses.CourseID = Courses.CourseID) AS Enrolled
FROM Students, Courses
ORDER BY StudentID,CourseName;
This would return the following result table in the demo:
StudentID FirstName LastName CourseName Enrolled
1 John Brown Chemistry False
1 John Brown English True
1 John Brown Geography True
1 John Brown History True
1 John Brown Maths False
1 John Brown Physics False
2 Jane Green Chemistry True
2 Jane Green English False
2 Jane Green Geography False
2 Jane Green History False
2 Jane Green Maths True
2 Jane Green Physics True
3 Jim White Chemistry False
3 Jim White English True
3 Jim White Geography False
3 Jim White History True
3 Jim White Maths True
3 Jim White Physics False
9 Joanna Black Chemistry True
9 Joanna Black English False
9 Joanna Black Geography False
9 Joanna Black History True
9 Joanna Black Maths True
9 Joanna Black Physics True
You'll find the demo in StudentCourses.zip in my public databases folder at:
https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
Note that if you are using an earlier version of Access you might find that the colour of some form objects such as buttons shows incorrectly and you will need to amend the form design accordingly.