SELECT Left(MBR_GROUPNO,5) AS MBR_GROUP_5, tblTrackingData.MEMBERNO
FROM ((tblMember INNER JOIN tblTrackingData ON tblMember.MEMBERNO =
tblTrackingData.MEMBERNO) INNER JOIN tblCaseLog ON tblTrackingData.ICNNO =
tblCaseLog.ICNNO) INNER JOIN tblCoordinators ON
tblTrackingData.TR_GRIEVANCECOORDINATOR = tblCoordinators.GC_RACF
WHERE Left(MBR_GroupNo,5) in ("70395","70396")
OR you could possibly use
WHERE MBR_GroupNo Like "7039[56]*"
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
Dan @BCBS said:
The below code works!
Now, how can I specify a specific criteria, I tried adding the criteria,
also tried creating another query from this one. But the dependence is
wrong.
I need to add only MBR_GROUP_5: Left(MBR_GROUPNO,5) = 70395 and 70396
SELECT Left(MBR_GROUPNO,5) AS MBR_GROUP_5, tblTrackingData.MEMBERNO
FROM ((tblMember INNER JOIN tblTrackingData ON tblMember.MEMBERNO =
tblTrackingData.MEMBERNO) INNER JOIN tblCaseLog ON tblTrackingData.ICNNO =
tblCaseLog.ICNNO) INNER JOIN tblCoordinators ON
tblTrackingData.TR_GRIEVANCECOORDINATOR = tblCoordinators.GC_RACF;