473,394 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Search keyword from string of data (Please help!)

I have a main table with a text description field. In this field, its
populated with a string of data. I need to identify from this string
of data the name of the vendor using some keywords.

I have another table that contains 2 fields, one being the keywords to
search for from the string of data and the other field being the
vendor name to pair up with the record.

How do I reference the keywords from the 2nd table and search thru the
string of data from the text description field from the main table and
then apply the vendor name to the main table?

Please help.

Oct 18 '07 #1
5 3345
On Oct 18, 5:51 pm, kan...@rocketmail.com wrote:
I have a main table with a text description field. In this field, its
populated with a string of data. I need to identify from this string
of data the name of the vendor using some keywords.

I have another table that contains 2 fields, one being the keywords to
search for from the string of data and the other field being the
vendor name to pair up with the record.

How do I reference the keywords from the 2nd table and search thru the
string of data from the text description field from the main table and
then apply the vendor name to the main table?

Please help.
You can create a query containing both tables. Set the criteria for
the [main table].[text description] to LIKE "*" & [another table].
[keyword] & "*"

Note that you really should have each keyword on a separate row of the
table, to select with an or condition. Two keywords in the same row
means that the query will only match if the exact phrase is found,
with the same sequence. You van insert an asterisk to allow variations
in spacing, punctuation and intermediary words.

Keyword finds
John Mary John Mary
John*Mary John, Mary
John*Mary John Smith or Mary Christmas
--
Bob Quintal
Oct 18 '07 #2
On Oct 18, 4:01 pm, "rquin...@sympatico.ca" <bob.quin...@gmail.com>
wrote:
On Oct 18, 5:51 pm, kan...@rocketmail.com wrote:
I have a main table with a text description field. In this field, its
populated with a string of data. I need to identify from this string
of data the name of the vendor using some keywords.
I have another table that contains 2 fields, one being the keywords to
search for from the string of data and the other field being the
vendor name to pair up with the record.
How do I reference the keywords from the 2nd table and search thru the
string of data from the text description field from the main table and
then apply the vendor name to the main table?
Please help.

You can create a query containing both tables. Set the criteria for
the [main table].[text description] to LIKE "*" & [another table].
[keyword] & "*"

Note that you really should have each keyword on a separate row of the
table, to select with an or condition. Two keywords in the same row
means that the query will only match if the exact phrase is found,
with the same sequence. You van insert an asterisk to allow variations
in spacing, punctuation and intermediary words.

Keyword finds
John Mary John Mary
John*Mary John, Mary
John*Mary John Smith or Mary Christmas

--
Bob Quintal
I guess I was not clear enough, let me give an example.

So below are the two tables I have. In Table 1, I have a text
description field. I need to search from the text description field
to determine who the vendor is. Therefore, in table 2, I have a list
of keyword that I can identify the vendor with by searching through
the text field in table 1.

How do I identify the vendor using table 2 and then populate table 1
with the vendor name reference in table 2?

Table 1

Text Description Transaction amount Vendor
2323a2007 ABC Bank $10
ABCVISA Bank $20
DataABC $30
Sep 07 ABC Bank $20
CDE Bank $30
Aug 07 ABC Bank $50
Bank of EFG $20
EFG transaction adj $10

Table 2

Keyword Vendor
ABC ABC Bank
CDE CDE Bank
EFG Bank of EFG

Oct 18 '07 #3
On Oct 18, 7:38 pm, kan...@rocketmail.com wrote:
On Oct 18, 4:01 pm, "rquin...@sympatico.ca" <bob.quin...@gmail.com>
wrote:
On Oct 18, 5:51 pm, kan...@rocketmail.com wrote:
I have a main table with a text description field. In this field, its
populated with a string of data. I need to identify from this string
of data the name of the vendor using some keywords.
I have another table that contains 2 fields, one being the keywords to
search for from the string of data and the other field being the
vendor name to pair up with the record.
How do I reference the keywords from the 2nd table and search thru the
string of data from the text description field from the main table and
then apply the vendor name to the main table?
Please help.
You can create a query containing both tables. Set the criteria for
the [main table].[text description] to LIKE "*" & [another table].
[keyword] & "*"
Note that you really should have each keyword on a separate row of the
table, to select with an or condition. Two keywords in the same row
means that the query will only match if the exact phrase is found,
with the same sequence. You van insert an asterisk to allow variations
in spacing, punctuation and intermediary words.
Keyword finds
John Mary John Mary
John*Mary John, Mary
John*Mary John Smith or Mary Christmas
--
Bob Quintal

I guess I was not clear enough, let me give an example.

So below are the two tables I have. In Table 1, I have a text
description field. I need to search from the text description field
to determine who the vendor is. Therefore, in table 2, I have a list
of keyword that I can identify the vendor with by searching through
the text field in table 1.

How do I identify the vendor using table 2 and then populate table 1
with the vendor name reference in table 2?

Table 1

Text Description Transaction amount Vendor
2323a2007 ABC Bank $10
ABCVISA Bank $20
DataABC $30
Sep 07 ABC Bank $20
CDE Bank $30
Aug 07 ABC Bank $50
Bank of EFG $20
EFG transaction adj $10

Table 2

Keyword Vendor
ABC ABC Bank
CDE CDE Bank
EFG Bank of EFG
You were clear enough, except that you said "one being the keywords to
search for from the string of data and the other field being the
vendor name" Had you not pluralized "keywords" I would have not added
the cautionary note about one keyword per row, since that is what you
have.

You build a query as I detailed above. put the two tables into the
query. In the grid section, bring down the vendor from table 2. bring
down the Text Description from table 1 In the criteria row, under the
text description column, put LIKE "*" & [keyword] & "*"

Run the query. When you test it works in a view, convert the query to
an update query to set the table 1 vendor with the table 2 vendor.

Oct 19 '07 #4
ka****@rocketmail.com wrote in
news:11**********************@q5g2000prf.googlegro ups.com:
I have a main table with a text description field. In this field,
its populated with a string of data. I need to identify from this
string of data the name of the vendor using some keywords.

I have another table that contains 2 fields, one being the
keywords to search for from the string of data and the other field
being the vendor name to pair up with the record.

How do I reference the keywords from the 2nd table and search thru
the string of data from the text description field from the main
table and then apply the vendor name to the main table?

Please help.
You can create a query containing both tables. Set the criteria for
the [main table].[text description] to LIKE "*" & [another table].
[keyword] & "*"

Note that you really should have each keyword on a separate row of
the table, to select with an or condition. Two keywords in the same
row means that the query will only match if the exact phrase is
found, with the same sequence. You van insert an asterisk to allow
variations in spacing, punctuation and intermediary words.

Keyword finds
John Mary John Mary
John*Mary John, Mary
John*Mary John Smith or Mary Christmas
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Oct 19 '07 #5
ka****@rocketmail.com wrote in
news:11**********************@i13g2000prf.googlegr oups.com:
On Oct 18, 4:01 pm, "rquin...@sympatico.ca"
<bob.quin...@gmail.comwrote:
>On Oct 18, 5:51 pm, kan...@rocketmail.com wrote:
I have a main table with a text description field. In this
field, its populated with a string of data. I need to identify
from this string of data the name of the vendor using some
keywords.
I have another table that contains 2 fields, one being the
keywords to search for from the string of data and the other
field being the vendor name to pair up with the record.
How do I reference the keywords from the 2nd table and search
thru the string of data from the text description field from
the main table and then apply the vendor name to the main
table?
Please help.

You can create a query containing both tables. Set the criteria
for the [main table].[text description] to LIKE "*" & [another
table]. [keyword] & "*"

Note that you really should have each keyword on a separate row
of the table, to select with an or condition. Two keywords in the
same row means that the query will only match if the exact phrase
is found, with the same sequence. You van insert an asterisk to
allow variations in spacing, punctuation and intermediary words.

Keyword finds
John Mary John Mary
John*Mary John, Mary
John*Mary John Smith or Mary Christmas

--
Bob Quintal

I guess I was not clear enough, let me give an example.

So below are the two tables I have. In Table 1, I have a text
description field. I need to search from the text description
field to determine who the vendor is. Therefore, in table 2, I
have a list of keyword that I can identify the vendor with by
searching through the text field in table 1.

How do I identify the vendor using table 2 and then populate table
1 with the vendor name reference in table 2?

Table 1

Text Description Transaction amount Vendor
2323a2007 ABC Bank $10
ABCVISA Bank $20
DataABC $30
Sep 07 ABC Bank $20
CDE Bank $30
Aug 07 ABC Bank $50
Bank of EFG $20
EFG transaction adj $10

Table 2

Keyword Vendor
ABC ABC Bank
CDE CDE Bank
EFG Bank of EFG

You were clear enough, except that you said "one being the
keywords to search for from the string of data and the other
field being the vendor name" Had you not pluralized "keywords" I
would have not added the cautionary note about one keyword per row,
since that is what you have.

You build a query as I detailed above. put the two tables into the
query. In the grid section, bring down the vendor from table 2.
bring down the Text Description from table 1 In the criteria row,
under the text description column, put LIKE "*" & keyword & "*"
Run the query. When you test it works in a view, convert the query
to an update query to set the table 1 vendor with the table 2
vendor.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Oct 22 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Duncan Winn | last post by:
I am new to VC++7. I am using a method GetPrivateProfileString that requires an LPTSTR. I have defined this as a: char * data_name; I am then trying to convert this to an LPOLESTR and I...
10
by: Tiraman :-\) | last post by:
hi, i have a little problem to concat a string with some "," sign. this is my code: Dim mystring as string = "" for i=1 to 3 mystring = mystring & "," & otherstring next i
9
by: Tris | last post by:
Hi People I need help!!! Have got a excel file that i have put into an access file so that i can create a mailing carrier sheet without re typing everybodys details in. The excel file has...
5
by: Kosmos | last post by:
Hey :) hopefully someone can help me with this...I decided to take on the task of programming an access database for my legal co-op/internship...I'm studying law and music production on the...
8
by: Greg Lyles | last post by:
Hi all, I'm trying to develop an ASP.NET 2.0 website and am running into some real problems with what I thought would be a relatively simple thing to do. In a nutshell, I'm stuck on trying to...
3
by: Skip | last post by:
OK, I'm a novice in JS but have lots of coding experience. I am trying to accomplish something that would seem somewhat simple - BUT IT'S NOT. I have a basic window that calls another window...
2
by: palgre | last post by:
Hi ALL, I am working in an windows based application using SQL Server 2000 as database. There are few tables (refer parent tables) in the application which are uploaded by a seprate application....
3
by: sharonrao123 | last post by:
Hello all, I have a products table (see below) Product State Apple |1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27| I have to display the state data on a webform...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.