Excel MS Query, How to create a Left Join

I try to create a Query with data from two tables. I want the result to be every record from table Wv007Transportor
and only records from W729SalgsHode where Wv007Transportor.Klientnr = W729SalgsHode.Klientnr. For some reason option 2 is not possible in the linking dialogbox. Can this be done in a MS Query? It's not a problem when I create a view in Access.

MS Query
Who is Participating?

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

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.

Saurabh Singh TeotiaCommented:
If you run the below mentioned query in the sql view of the MSQUERY..what does it says??

select tb1.*, tb2.*
from Wv007Transportor tb1
left join W729SalgsHode tb2 on  tb1.Klientnr=tb2.Klientnr

Open in new window

hallpettAuthor Commented:
It gives the wanted result when I adjust a bit and use it like this:
select tb1.info, tb2.navn
from  W729SalgsHode tb1 
left join Wv007Transportor  tb2 on  (tb1.Klientnr=tb2.Klientnr and tb1.transportornr=tb2.transportornr)
where (tb1.Uttaksnr=516665)

Open in new window

Now I'm wondering how the syntax should be If I have more left joins, see image below. Appreciate any help.
Query from Access
Saurabh Singh TeotiaCommented:
You can do something like this...

select tb1.info, tb2.navn,tb3.Kundenr,tb4.Levstedanr
from  W729SalgsHode tb1 
left join Wv007Transportor  tb2 on  (tb1.Klientnr=tb2.Klientnr and tb1.transportornr=tb2.transportornr)
left join RW002kunde tb3 on (tb1.Klientnr = tb3.Klientnr)
left join W003levSted tb4 on (tb1.Klientnr = tb4.Klientnr)
where (tb1.Uttaksnr=516665)

Open in new window

Also i have randomly picked up columns of tb3 and tb4 you can pick basis of you like and in additional what i have assumed W729SalgsHode is the main table for which you want to do left join on...


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
hallpettAuthor Commented:
Thank you!
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
Microsoft Excel

From novice to tech pro — start learning today.