Solved

MS Access keyword search of data table text field using separate keyword table

Posted on 2012-04-12
3
637 Views
Last Modified: 2012-04-19
Hi,

I am doing some analysis on a data extract, to identify reasons for call based on the incident cases notes. Unfortunately, I'm not familiar with MS Access so I'm looking for some help.

I am trying to build a keyword search, but there are a lot of unknowns and I expect this to be an iterative process to arrive at the correct words to be an effective search. Given the (lack of) integrity of the data I want to try and stick to broader categories rather than specific words - e.g. 'screen', 'display', 'image', 'picture' could all relate to 'visual issues'.

What I would like to do is to hold the individual keywords in a separate table, which would then be used as the basis for searching the text field in the data table. That way I can keep refining the actual words without needing to delve back into the query design / sql.

To complicate matters slightly, there are actually two data tables, one with the product references and the other with the actual case notes.

I have got as far as searching the text field for a specific word, but I am stumped as to how  to get this to poll the keyword table for words, and ideally make this more of a fuzzy lookup approach.

I'm not sure how useful this will be but here is the SQL code:

SELECT [RN Product].[Product Level 2], [RN Product].[Product Level 3], [RN Product].Reference, [RightNow Note Data].Text, IIf(InStr(1,[Text],"picture")>0,1,"") AS Picture
FROM [RightNow Note Data] INNER JOIN [RN Product] ON [RightNow Note Data].[reference ] = [RN Product].Reference
GROUP BY [RN Product].[Product Level 2], [RN Product].[Product Level 3], [RN Product].Reference, [RightNow Note Data].Text, [RN Product].[Top Level], [RN Product].[Product Level 1], IIf(InStr(1,[Text],"picture")>0,1,"")
HAVING ((([RN Product].[Product Level 2])="Television") AND (([RN Product].[Product Level 3])="something"));

Open in new window

0
Comment
Question by:pendulum
3 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 37838512
You might want to start by reading my article on Complex Text Filters.  It contains some good ideas and a sample database.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37838671
<I'm not familiar with MS Access so I'm looking for some help.>
How much help?
This may be akin to saying :  "I'm not familiar with Cars so I'm looking for some help building a transmission"
;-)

fyed's article will be a big help here.
The key word there is "Complex"
If you are new to Access you may have a substantial learning curve here.
The real issue with any "Search" system is creating the "User Interface"
But I am sure fyed can assist.

<and ideally make this more of a fuzzy lookup approach.>
This is an entirely different subject...
But you can see the solution here for more info:
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_22757244.html

JeffCoachman
0
 

Author Closing Comment

by:pendulum
ID: 37864870
Complex is the operative word, but a really useful approach for me to integrate. Thanks for your help.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question