I have 3 tables - the first 2 tables are linked by PIW and Ref, and the 1st and 3rd by PIW. The field Ref may be Null; hence the nz() addition in the following erroneous SQL:
SELECT [A].*, .*, [C].[status]
FROM [A]
INNER JOIN ON [A].[PIW]=.[PIW] AND
nz([A].[Ref],"")=nz(.[Ref],"")
INNER JOIN [C] ON [A].[PIW]=[C].[PIW]
I get the message "Syntax Error - Missing Operator".
I do know this 2-table query works:
SELECT [A].*, .*
FROM [A]
INNER JOIN ON [A].[PIW]=.[PIW] AND
nz([A].[Ref],"")=nz(.[Ref],"")
Any suggestions to get the first query to work?
Thanks,
Pete
SELECT [A].*, .*, [C].[status]
FROM [A]
INNER JOIN ON [A].[PIW]=.[PIW] AND
nz([A].[Ref],"")=nz(.[Ref],"")
INNER JOIN [C] ON [A].[PIW]=[C].[PIW]
I get the message "Syntax Error - Missing Operator".
I do know this 2-table query works:
SELECT [A].*, .*
FROM [A]
INNER JOIN ON [A].[PIW]=.[PIW] AND
nz([A].[Ref],"")=nz(.[Ref],"")
Any suggestions to get the first query to work?
Thanks,
Pete