P
Peter Stone
Access 2003, XP pro
The following statement works
SELECT tblDest.DestID, tblNm.Nm, tjnDestGeo.GeoID
FROM tblNm INNER JOIN ((tblDest INNER JOIN tjnDestGeo ON tblDest.DestID =
tjnDestGeo.DestID) INNER JOIN tjnDestNm ON tblDest.DestID = tjnDestNm.DestID)
ON tblNm.NmID = tjnDestNm.NmID
WHERE (((tblNm.NmCatID)=1) AND ((tjnDestGeo.GeoID)=4))
ORDER BY tblNm.Nm;
But the following (with two criteria on GeoID (4 And 10) in the WHERE
clause) doesn't return any records.
SELECT tblDest.DestID, tblNm.Nm, tjnDestGeo.GeoID
FROM tblNm INNER JOIN ((tblDest INNER JOIN tjnDestGeo ON tblDest.DestID =
tjnDestGeo.DestID) INNER JOIN tjnDestNm ON tblDest.DestID = tjnDestNm.DestID)
ON tblNm.NmID = tjnDestNm.NmID
WHERE (((tblNm.NmCatID)=1) AND ((tjnDestGeo.GeoID)=4 And
(tjnDestGeo.GeoID)=10))
ORDER BY tblNm.Nm;
Any suggestions please.
Thank you
Peter
The following statement works
SELECT tblDest.DestID, tblNm.Nm, tjnDestGeo.GeoID
FROM tblNm INNER JOIN ((tblDest INNER JOIN tjnDestGeo ON tblDest.DestID =
tjnDestGeo.DestID) INNER JOIN tjnDestNm ON tblDest.DestID = tjnDestNm.DestID)
ON tblNm.NmID = tjnDestNm.NmID
WHERE (((tblNm.NmCatID)=1) AND ((tjnDestGeo.GeoID)=4))
ORDER BY tblNm.Nm;
But the following (with two criteria on GeoID (4 And 10) in the WHERE
clause) doesn't return any records.
SELECT tblDest.DestID, tblNm.Nm, tjnDestGeo.GeoID
FROM tblNm INNER JOIN ((tblDest INNER JOIN tjnDestGeo ON tblDest.DestID =
tjnDestGeo.DestID) INNER JOIN tjnDestNm ON tblDest.DestID = tjnDestNm.DestID)
ON tblNm.NmID = tjnDestNm.NmID
WHERE (((tblNm.NmCatID)=1) AND ((tjnDestGeo.GeoID)=4 And
(tjnDestGeo.GeoID)=10))
ORDER BY tblNm.Nm;
Any suggestions please.
Thank you
Peter