barry_kellett99
New member
- Local time
- Today, 22:30
- Joined
- Jan 31, 2008
- Messages
- 4
I have two tables, which both have a field called FixtureID in it. One table is called tbl_fixtures and the other tbl_reports.
I want to return a list of FixtureID's that are in tbl_fixtures, that are not in tbl_reports.
Simple? Sounds it!
I tried to use the Not Exists structure as follows but it returns No rows when it should return about a dozen or more.
Then Access has reformatted it to the following:
Which also makes sense logically to me, but again it is not bringing any rows back.
Lost and confused as to why it isnt working,
BK
I want to return a list of FixtureID's that are in tbl_fixtures, that are not in tbl_reports.
Simple? Sounds it!
I tried to use the Not Exists structure as follows but it returns No rows when it should return about a dozen or more.
Code:
SELECT fix.FixtureID
FROM tbl_Fixtures AS fix
WHERE NOT EXISTS (SELECT Rep.FixtureID FROM tbl_Reports AS Rep)
Then Access has reformatted it to the following:
Code:
SELECT fix.FixtureID
FROM tbl_Fixtures AS fix
WHERE (((Exists (SELECT Rep.FixtureID FROM tbl_Reports AS Rep))=False));
Which also makes sense logically to me, but again it is not bringing any rows back.
Lost and confused as to why it isnt working,
BK