Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Creating and Managing Databases with phpMyAdmin in cPanel.
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

757 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

22 Experts available now in Live!

Get 1:1 Help Now