stevenblanc
Registered User.
- Local time
- Today, 05:11
- Joined
- Jun 27, 2011
- Messages
- 103
Hey folks,
So access doesn't take outer joins I take it.
I have three tables.
tblGuidelines which contains the primary key pedGuide
tblCourseRecords which contains a list of courses with the primary key courseRecordID
and
tblCourseRecordPedMarking which is related to tblCourseRecords through a junction table and has both courseRecord and pedGuide as primary Keys.
I am trying to build a query which lists all pedGuide contained in tblGuidelines that are do not currently exist for the particular courseRecordID on tblCourseRecordPedMarking.
I attempted to use a LEFT OUTER JOIN to do this but access does not recognize the join. I then attempted to use the query builder, but the three join types allowed do not seem to provide what I need.
Any ideas how I can achieve this?
So access doesn't take outer joins I take it.
I have three tables.
tblGuidelines which contains the primary key pedGuide
tblCourseRecords which contains a list of courses with the primary key courseRecordID
and
tblCourseRecordPedMarking which is related to tblCourseRecords through a junction table and has both courseRecord and pedGuide as primary Keys.
I am trying to build a query which lists all pedGuide contained in tblGuidelines that are do not currently exist for the particular courseRecordID on tblCourseRecordPedMarking.
I attempted to use a LEFT OUTER JOIN to do this but access does not recognize the join. I then attempted to use the query builder, but the three join types allowed do not seem to provide what I need.
Code:
SELECT tblGuidelines.pedGuide, tblGuidelines.pedTitle FROM tblGuidelines LEFT OUTER JOIN tblCourseRecordPedMarking ON tblGuidelines.pedGuide WHERE tblGuidelines.pedCategory ="Marking" AND tblCourseRecordPedMarking.coureRecordID = 1 AND tblCourseRecordPedMarking.pedGuide IS null ;
Any ideas how I can achieve this?