Question : LEFT/RIGHT Joins not working as expected

Hi there,

I am creating a query for a report and cannot get LEFT/RIGHT JOINS working correctly - they keep equating to the recordset that would be returned by a INNER JOIN. Has anyone experienced his before?

Its the same problem as discussed at:

http://www.access-programmers.co.uk/forums/archive/index.php/t-84438.html

but the workaround wont work for me.

Answer : LEFT/RIGHT Joins not working as expected

The problem with that query is you are filtering the results (in the WHERE clause) using a field of the right table.

Try
1:
2:
3:
SELECT Materials.*, BWeighs.BatchID
FROM Materials LEFT JOIN BWeighs ON Materials.ID = BWeighs.Material
WHERE BWeighs.BatchID=[] OR IsNull(BWeighs.Material);
Random Solutions  
 
programming4us programming4us