M
Mike Webb
Using Access 2K2.
I have 3 tables: tblArticles (news articles and web pages of interest to our
organization), tblKeywords (locally assigned keywords that best describe the
content of the 1st table which I can use to query), tblJoin (joins the first
2 tables in 1-to-many relationships from them to this one.
Tables work fine.
Built data entry form (my first try) with tblArticles as main form and
tblKeywords as the subform. The record source for the subform is:
SELECT tblKeywords.Keyword_ID AS tblKeywords_Keyword_ID,
tblKeywords.Keyword, tblJoin.Join_ID, tblJoin.Article_ID, tblJoin.Keyword_ID
AS tblJoin_Keyword_ID FROM tblKeywords INNER JOIN tblJoin ON
tblKeywords.Keyword_ID=tblJoin.Keyword_ID;
The subform has a combo box to choose either an existing keyword or the user
can type one in.
The Problem: Whether I choose one or type one in, I get a new record in
tblKeywords (and it is linked up to the article in tblArticles). For
example, I now have several Keyword entries of "water rights" and "Platte".
It should have just a single record for each.
The row source for the combo box is: SELECT tblKeywords.Keyword
FROM tblKeywords;
What did I miss??
TIA,
Mike
Platte River Whooping Crane Maintenance Trust, Inc.
a non-profit 501(c)(3) organization
I have 3 tables: tblArticles (news articles and web pages of interest to our
organization), tblKeywords (locally assigned keywords that best describe the
content of the 1st table which I can use to query), tblJoin (joins the first
2 tables in 1-to-many relationships from them to this one.
Tables work fine.
Built data entry form (my first try) with tblArticles as main form and
tblKeywords as the subform. The record source for the subform is:
SELECT tblKeywords.Keyword_ID AS tblKeywords_Keyword_ID,
tblKeywords.Keyword, tblJoin.Join_ID, tblJoin.Article_ID, tblJoin.Keyword_ID
AS tblJoin_Keyword_ID FROM tblKeywords INNER JOIN tblJoin ON
tblKeywords.Keyword_ID=tblJoin.Keyword_ID;
The subform has a combo box to choose either an existing keyword or the user
can type one in.
The Problem: Whether I choose one or type one in, I get a new record in
tblKeywords (and it is linked up to the article in tblArticles). For
example, I now have several Keyword entries of "water rights" and "Platte".
It should have just a single record for each.
The row source for the combo box is: SELECT tblKeywords.Keyword
FROM tblKeywords;
What did I miss??
TIA,
Mike
Platte River Whooping Crane Maintenance Trust, Inc.
a non-profit 501(c)(3) organization