Left Join causes invalid operation

G

Guest

Can anyone tell my why the following Query causes an Invalid operation? If I
change it to and Inner or Right Join it works fine.

SELECT TotalProdDP.Policy, TotalProdDP.Face, Directory_Corporate.[Division
Name], Directory_Corporate.[Business Unit Name], Directory_Corporate.[Market
Name], Directory_Corporate.Location, TotalProdDP.TransferDate
FROM Directory_Corporate LEFT JOIN TotalProdDP ON
Directory_Corporate.Location = TotalProdDP.SCILocation;
 
M

Marshall Barton

bkaufman said:
Can anyone tell my why the following Query causes an Invalid operation? If I
change it to and Inner or Right Join it works fine.

SELECT TotalProdDP.Policy, TotalProdDP.Face, Directory_Corporate.[Division
Name], Directory_Corporate.[Business Unit Name], Directory_Corporate.[Market
Name], Directory_Corporate.Location, TotalProdDP.TransferDate
FROM Directory_Corporate LEFT JOIN TotalProdDP ON
Directory_Corporate.Location = TotalProdDP.SCILocation;


I think the error is in yout code (or somewhere?) that uses
the Policy or Face field. The problem can be caused by a
function or expression that does not allow for a value being
Null. The fields from TotalProdDP will be Null when there
are no records that match the Location field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top