Heath Boroff wrote:
SELECT tblDailyWork.dtmDate, tblDailyWork.strEngineer,
tblDailyWork.dblEngineeringHours,
tblChangeNoticeSetup.strEngineeringDescription,
tblDailyWork.strCNNumber, tblChangeNoticeSetup.ysnCNCompleted,
tblChangeNoticeSetup.strProductCode,
tblProductCode.strProductCodeDescription,
tblChangeNoticeSetup.strCategoryCode,
tblCategoryCodes.strCategoryCodeDescription
FROM ((tblChangeNoticeSetup INNER JOIN tblDailyWork ON
tblChangeNoticeSetup.strCNNumber = tblDailyWork.strCNNumber) INNER JOIN
tblCategoryCodes ON tblChangeNoticeSetup.strCategoryCode =
tblCategoryCodes.strCategoryCode) INNER JOIN tblProductCode ON
tblChangeNoticeSetup.strProductCode = tblProductCode.strProductCode;
You are using INNER JOINs for all the tables so only rows with matching
records are returned. There may be records in tblProductCode that have
a strProductCode that isn't found in tblChangeNoticeSetup.
You could try changing that last INNER JOIN to a RIGHT JOIN and see
what happens. I don't know what field you are counting on.
--
'-------------------------------
' John Mishefske
'-------------------------------