niki
axes noob 'll b big 1 day
- Local time
- Today, 18:35
- Joined
- Apr 17, 2003
- Messages
- 66
Hello,
I have two distinct tables, from these tables I want to compare two fields containing text values (keywords). In table 1, the keywords field contains 2000 rows and each row has about 10 keywords. Table 2 contains a lot less entries.
I would like to create a query which takes one word after the other from the "light" keyword field in Table 2, and which compares these words in a single repetitive manner to the words contained in the keywords field of Table 1. After a "hit" (e.g. a same word contained in both keywords fields from Tables 1 and 2) between the two fields, a report or a third database will be created to inform the user of a matching, giving both keys or identifiers of Tables 1 and 2.
I assume that there are two embedded functions in a single loop as:
there are n words in table 2
for i++, 1<i<n
<loop>
function 1: reads the first word in keyword field in Table 2 (e.g. sheep)
function 2: searches the entire keyword field in Table 1 for "sheep"
<end loop>
Questions:
- Being a noob with access, I don't know the functions, neither the syntax of the code to type into my query.
- After that all of the words from a single entry in Table 2 have been identified and searched through Table 1, will there be a problem for Access to keep on searching for the following keywords in the following entry (entries) in the same field?
- What's the best way to show the hits? a printable report or a third database containing the full details of the two keywords matching entries?
thanks for your help!
nico
I have two distinct tables, from these tables I want to compare two fields containing text values (keywords). In table 1, the keywords field contains 2000 rows and each row has about 10 keywords. Table 2 contains a lot less entries.
I would like to create a query which takes one word after the other from the "light" keyword field in Table 2, and which compares these words in a single repetitive manner to the words contained in the keywords field of Table 1. After a "hit" (e.g. a same word contained in both keywords fields from Tables 1 and 2) between the two fields, a report or a third database will be created to inform the user of a matching, giving both keys or identifiers of Tables 1 and 2.
I assume that there are two embedded functions in a single loop as:
there are n words in table 2
for i++, 1<i<n
<loop>
function 1: reads the first word in keyword field in Table 2 (e.g. sheep)
function 2: searches the entire keyword field in Table 1 for "sheep"
<end loop>
Questions:
- Being a noob with access, I don't know the functions, neither the syntax of the code to type into my query.
- After that all of the words from a single entry in Table 2 have been identified and searched through Table 1, will there be a problem for Access to keep on searching for the following keywords in the following entry (entries) in the same field?
- What's the best way to show the hits? a printable report or a third database containing the full details of the two keywords matching entries?
thanks for your help!
nico