F
frank
I have two tables and each of table has several fields. The first table
contains information about news stories (date, time, headline etc). The
second table contains NYSE companies (company name and stock symbol).
What I want to do is to match the 1st table's news headline with 2nd table's
company name. I created a query with creteria like:
[1999]![Content] Like [NYSE Company Names]![Field4]
and
[1999]![Content] = [TSX Company Names]![Field4]
Both criteria return me a very small portion of the actual matched cases
because it matchs the exactly words for both field. In reality, Company name
often contains Inc, Corp, and LLC but these words are often omitted in news
headlines.
The other alternative I tried is from a previous post in this msg board. I
create a query with both field, under the news headline, i set criteria as:
Like "*" & [NYSE Company]![Company Name] & "*"
and under the company name, I set criteria as:
Like "*" & [News]![Headlines] & "*"
This seemed to be work in other's case but does not particularly work out in
my case. I get very few matched cases than it is supposed to.
Anyone know how to do a partially match? For example, Headline field says:
IBM donates 100 Million to abc fund" and Company name says:"IBM corporation".
The criteria will allow me to match the two fields as long as they have
something in common. In this case, both field have "IBM" and they should
count as a match in my definition. I know I could do this by using wildcard
"like" and reset key words one by one but the problem is it is way too much
work given that i have half million of news headlines and 4000 companies in
each table.
thanks in advance.
contains information about news stories (date, time, headline etc). The
second table contains NYSE companies (company name and stock symbol).
What I want to do is to match the 1st table's news headline with 2nd table's
company name. I created a query with creteria like:
[1999]![Content] Like [NYSE Company Names]![Field4]
and
[1999]![Content] = [TSX Company Names]![Field4]
Both criteria return me a very small portion of the actual matched cases
because it matchs the exactly words for both field. In reality, Company name
often contains Inc, Corp, and LLC but these words are often omitted in news
headlines.
The other alternative I tried is from a previous post in this msg board. I
create a query with both field, under the news headline, i set criteria as:
Like "*" & [NYSE Company]![Company Name] & "*"
and under the company name, I set criteria as:
Like "*" & [News]![Headlines] & "*"
This seemed to be work in other's case but does not particularly work out in
my case. I get very few matched cases than it is supposed to.
Anyone know how to do a partially match? For example, Headline field says:
IBM donates 100 Million to abc fund" and Company name says:"IBM corporation".
The criteria will allow me to match the two fields as long as they have
something in common. In this case, both field have "IBM" and they should
count as a match in my definition. I know I could do this by using wildcard
"like" and reset key words one by one but the problem is it is way too much
work given that i have half million of news headlines and 4000 companies in
each table.
thanks in advance.