Access SQL query for Crosstab query not working

Hi, I'm trying to create a crosstab query in Access 2007 and I'm encountering the following error message after setting up the join property.

The error message is "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 that first join and then include that query in your SQL statement."

I'm also enclosing the SQL query for reference:

TRANSFORM Sum(MPlanShipment.NoOfPcs) AS SumOfNoOfPcs
SELECT MPlanShipment.ShipmentCode, tblForwarder.ForwarderName
FROM tblForwarder INNER JOIN (Tbl_Next7days LEFT JOIN MPlanShipment ON Tbl_Next7days.Cur_Date = MPlanShipment.ContTruckingdate) ON tblForwarder.ForwarderID = MPlanShipment.Forwarder
GROUP BY MPlanShipment.ShipmentCode, tblForwarder.ForwarderName
PIVOT Tbl_Next7days.Cur_Date_WkdayName;

Appreciate if you can advise how to amend the SQL query in order run the report.  Thanks you very much.
Access-SQL-Setup.JPG
SQL-Error-message.JPG
sltan32Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
Try using:

    LEFT JOIN (Tbl_Next7days LEFT JOIN

/gustav
0
sltan32Author Commented:
Hi Gustav,

Nope, this does not work, it says "Join Expression not supported".
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gustav BrockCIOCommented:
It was mean to replace:

    INNER JOIN (Tbl_Next7days LEFT JOIN

Or just double-click the inner join in the designer and change the join to a left join.

If it still doesn't work (I don't have your tables), move the inner-joined tables to a subquery.

/gustav
0
sltan32Author Commented:
problem solved as it is caused by another join in the statement that is not configured properly
0
sltan32Author Commented:
Found out the reason that causes the SQL not to work as it is caused by another join not properly configured.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Query Syntax

From novice to tech pro — start learning today.