I have a similar setup with 3 tables. 1 table with primary key and 2 foreign keys. 2 tables have primary key in each which are foreign key in table 1. I have selected option 2 in the join properties screen. When I run I get the following message. Are you able to identify what I might be doing wrong?
"The SQL statement could not be executed because it contains ambiguous outer joins. To force one of the joins to be performed first, create a separate query that performs the first join and then include that query in your SQL statement."
Adam Schwanz
@Reply 5 years ago
This is a hard one to explain but this is usually because of the way you're telling access to process the relationship. Imagine our 3 tables are Table A, Table B, Table C. If you do one Join that says include all of table A and only matching in table B, then do a join between B and C that says include all the records. it can't be both.
You can either not make them inner/outer joins (include all where matching rows are equal), or do it so it's A->B->C or A<-B<-C. You can't do something like A->B<-C because some of A->B will not be the same as B<-C, access can't show that information. If you need to do that you need to do a query with A->B and then make a new second query for AB<-C
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Expert 1.