By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,477 Members | 1,641 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,477 IT Pros & Developers. It's quick & easy.

Access sql statement - left outer join with selection criteria onon table

P: n/a
I am trying to use an access sql statement in a module that does a left
outer join on one table - joined to a table that has a selection
criteria. The result is an inner join.

If I do this in two pieces using queries, it works correctly.

If I remove the criteria, it works correctly but of course gives me more
matches than I want.

Access 2003

Suggestions?

Bob
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Thu, 05 May 2005 15:24:42 -0500, Bob Alston wrote:
I am trying to use an access sql statement in a module that does a left
outer join on one table - joined to a table that has a selection criteria.
The result is an inner join.

If I do this in two pieces using queries, it works correctly.

If I remove the criteria, it works correctly but of course gives me more
matches than I want.

Access 2003

Suggestions?


Use 2 queries rather than 1, is the simple answer. Trying to do both the
filtering and the outer join in a single query will create a contradiction
between the filter and the outer join - as you've seen, the filter wins
(so the join becomes an inner join instead).
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.