Hi Allen, I have re-written code, but it does not work,
the LEF JOIN that I have on my query is for another criteria, I did what you
said but it only shows only datas with a Planner Code,
I have four Planner Codes,
BAM-06
JAXM-06
AT-06
DG-06
and this query only shows datas with Planner Codes equal to:BAM-06 ( the
first onw on the list of the Query_ActivePlanners.Planner_Code
could you help...I can send the DB if you want
SELECT WODispatchLinkedtoExcel.[Part ID], WODispatchLinkedtoExcel.Desc,
WODispatchLinkedtoExcel.Planner, WODispatchLinkedtoExcel.[WO ID],
WODispatchLinkedtoExcel.[No ], WODispatchLinkedtoExcel.[C-Date],
WODispatchLinkedtoExcel.[S-Date], WODispatchLinkedtoExcel.[W-Date],
WODispatchLinkedtoExcel.[P-Date], WODispatchLinkedtoExcel.[Stat ],
WODispatchLinkedtoExcel.[WO-Qty], WODispatchLinkedtoExcel.[Open-Qty],
WODispatchLinkedtoExcel.[Pend-Qty], WODispatchLinkedtoExcel.[Run Hrs ],
WODispatchLinkedtoExcel.[Res-ID], WODispatchLinkedtoExcel.[Res-Desc],
WODispatchLinkedtoExcel.[Cut Sheet], WODispatchLinkedtoExcel.[Prod Line],
WODispatchLinkedtoExcel.User3, WODispatchLinkedtoExcel.[User4 ],
WODispatchLinkedtoExcel.[User5 ], WODispatchLinkedtoExcel.[User6 ],
WODispatchLinkedtoExcel.[User7 ], WODispatchLinkedtoExcel.[User8 ],
WODispatchLinkedtoExcel.[User9 ], WODispatchLinkedtoExcel.[User10 ],
WODispatchLinkedtoExcel.[Spec Sizing]
FROM (WODispatchLinkedtoExcel LEFT JOIN IDShipmentSystem ON
WODispatchLinkedtoExcel.[WO ID] = IDShipmentSystem.WO_ID) INNER JOIN
Query_ActivePlanners ON WODispatchLinkedtoExcel.Planner =
Query_ActivePlanners.Planner_Code
WHERE (((WODispatchLinkedtoExcel.[WO ID])>110096) AND
((IDShipmentSystem.WO_ID) Is Null));
============================================
--
Lorenzo DÃaz
Cad Technician
Allen Browne said:
You have a LEFT JOIN between the 2 tables. Because you only want the values
where both tables match, you need an INNER JOIN.
Double-click the line joining the 2 tables in query design view.
Access pops up a dialog with 3 options.
Choose the first one.