markgrizzle
Programmer
HI:
I tried a left outer join on three fields, but the results kept excluding a record from the left table.
In the query designer, everything looked okay, but I ended up modifying the underlying sql statement as shown
The original from clause:
FROM (
tblBatch
INNER JOIN (
tblTemplate
LEFT JOIN
qryPrint ON tblTemplate.PieceFormat =
qryPrint.Format)
AND (tblTemplate.Facility =
qryPrint.FacilityName)
AND (tblTemplate.MediaProgram =
qryPrint.MediaProgram) ...
Final version:
FROM (
tblBatch
INNER JOIN (
tblTemplate
LEFT JOIN
qryPrint ON (tblTemplate.PieceFormat =
qryPrint.Format)
AND (tblTemplate.Facility =
qryPrint.FacilityName)
AND (tblTemplate.MediaProgram =
qryPrint.MediaProgram)) ...
After making this change, the query ran fine, but Access wouldn't display the query in the designer. What I find really frightening is the query designer displaying one thing but doing another.
Has anyone seen this behavior?
I tried a left outer join on three fields, but the results kept excluding a record from the left table.
In the query designer, everything looked okay, but I ended up modifying the underlying sql statement as shown
The original from clause:
FROM (
tblBatch
INNER JOIN (
tblTemplate
LEFT JOIN
qryPrint ON tblTemplate.PieceFormat =
qryPrint.Format)
AND (tblTemplate.Facility =
qryPrint.FacilityName)
AND (tblTemplate.MediaProgram =
qryPrint.MediaProgram) ...
Final version:
FROM (
tblBatch
INNER JOIN (
tblTemplate
LEFT JOIN
qryPrint ON (tblTemplate.PieceFormat =
qryPrint.Format)
AND (tblTemplate.Facility =
qryPrint.FacilityName)
AND (tblTemplate.MediaProgram =
qryPrint.MediaProgram)) ...
After making this change, the query ran fine, but Access wouldn't display the query in the designer. What I find really frightening is the query designer displaying one thing but doing another.
Has anyone seen this behavior?