Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Left Join in Access 97

Status
Not open for further replies.

wendywam

Programmer
Jun 21, 2004
15
ZA
Hi All
How do i convert the following sql 6.5 query into Ms Access 97 query.

SELECT a.Rem,b.nam,c.Pro,d.Exp,e.Fligh
FROM
Table1 a
LEFT OUTER JOIN Table2 b ON b.Code = a.Cone
LEFT OUTER JOIN Table3 e ON e.AwbN = a.AwbN
LEFT OUTER JOIN Table4 c ON c.AwbN = a.AwbN
LEFT OUTER JOIN Table5 ON d.AwbN = a.AwbN
WHERE a.AwbN = '12345'
 
Take out the 'Outer' and group joins with brackets.

Better still go into QBE, bring in the 5 tables, join them visually, edit the join lines (to be effectively left joins) and sit back while Access does the work of generating correct SQL.

Don't have a dog and bark yourself.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top