?
Solved

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

Posted on 2012-04-12
3
Medium Priority
?
672 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Accepted Solution

by:
Dale Fye earned 2000 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

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

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

Recently I was talking with Tim Sharp, one of my colleagues from our Technical Account Manager team about MongoDB’s scalability. While doing some quick training with some of the Percona team, Tim brought something to my attention...
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

765 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