Solved

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

Posted on 2012-04-12
3
598 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now