P
Peter Stone
Access 2003, XP Pro
I have a table of Destinations. Destinations can have more than one Name
(e.g., common name, official name, previous name, alternate name (e.g.,
Holland/Netherlands). Some Destinations have an Article (e.g., THE
Netherlands, THE United States). The Article is more complex in other
languages--Spanish has four articles: El, La, Los, Las.
The problem is that to join the Destination to the Name and then join the
Name to the Article requires two many-to-many joins in the SQL statement.
I can't add records to the SQL below.
SELECT tjnDestinationName.DestinationID, tjnDestinationName.NameID,
tblName.Name, tjnNameArticle.ArticleID
FROM tlkArticle INNER JOIN ((tblName INNER JOIN tjnDestinationName ON
tblName.NameID = tjnDestinationName.NameID) INNER JOIN tjnNameArticle ON
tblName.NameID = tjnNameArticle.NameID) ON tlkArticle.ArticleID =
tjnNameArticle.ArticleID
WHERE (((tblName.NameCatID)=3) AND ((tlkArticle.LanguageID)=1));
I could have a separate form that is based on NameID and add the Articles
there, but it's not neat.
FYI: The tables above that are prefixed tjn are the linking tables.
Thank you
Peter
I have a table of Destinations. Destinations can have more than one Name
(e.g., common name, official name, previous name, alternate name (e.g.,
Holland/Netherlands). Some Destinations have an Article (e.g., THE
Netherlands, THE United States). The Article is more complex in other
languages--Spanish has four articles: El, La, Los, Las.
The problem is that to join the Destination to the Name and then join the
Name to the Article requires two many-to-many joins in the SQL statement.
I can't add records to the SQL below.
SELECT tjnDestinationName.DestinationID, tjnDestinationName.NameID,
tblName.Name, tjnNameArticle.ArticleID
FROM tlkArticle INNER JOIN ((tblName INNER JOIN tjnDestinationName ON
tblName.NameID = tjnDestinationName.NameID) INNER JOIN tjnNameArticle ON
tblName.NameID = tjnNameArticle.NameID) ON tlkArticle.ArticleID =
tjnNameArticle.ArticleID
WHERE (((tblName.NameCatID)=3) AND ((tlkArticle.LanguageID)=1));
I could have a separate form that is based on NameID and add the Articles
there, but it's not neat.
FYI: The tables above that are prefixed tjn are the linking tables.
Thank you
Peter