P
Peter Stone
Access 2003
Novice
The following query is on a combo on a subform.
The query displays perfectly correctly in Datasheet view, but on the
occasions when there is an excluded record in tblDest (e.g. with GeogID = 2),
a blank appears in the combo. The correct record is there, but I have to
scroll in the combo to view it.
How can I fix this? Do I need to modify the SQL, my db design, or the combo?
There are 4 tables shown on the grid: tblName; tjnNameDest; tblDest;
tjnGeogDest the two tables prefixed tjn are to create many-to-many
relationships.
SELECT tblDest.DestID, tblName.Name, tblName.NmTypeID, tjnDestGeog.GeogID
FROM (tblDest INNER JOIN tjnDestGeog ON tblDest.DestID = tjnDestGeog.DestID)
INNER JOIN (tblName INNER JOIN tjnDestNm ON tblName.NameID =
tjnDestNm.NameID) ON tblDest.DestID = tjnDestNm.DestID
WHERE (((tblName.NmTypeID)=1) AND ((tjnDestGeog.GeogID)>3 And
(tjnDestGeog.GeogID)<6))
ORDER BY tblName.Name;
Thanks
Novice
The following query is on a combo on a subform.
The query displays perfectly correctly in Datasheet view, but on the
occasions when there is an excluded record in tblDest (e.g. with GeogID = 2),
a blank appears in the combo. The correct record is there, but I have to
scroll in the combo to view it.
How can I fix this? Do I need to modify the SQL, my db design, or the combo?
There are 4 tables shown on the grid: tblName; tjnNameDest; tblDest;
tjnGeogDest the two tables prefixed tjn are to create many-to-many
relationships.
SELECT tblDest.DestID, tblName.Name, tblName.NmTypeID, tjnDestGeog.GeogID
FROM (tblDest INNER JOIN tjnDestGeog ON tblDest.DestID = tjnDestGeog.DestID)
INNER JOIN (tblName INNER JOIN tjnDestNm ON tblName.NameID =
tjnDestNm.NameID) ON tblDest.DestID = tjnDestNm.DestID
WHERE (((tblName.NmTypeID)=1) AND ((tjnDestGeog.GeogID)>3 And
(tjnDestGeog.GeogID)<6))
ORDER BY tblName.Name;
Thanks