Find and Flag Keywords in Microsoft Access Survey Responses
Question details
Find keywords in survey response text and record which responses contain each keyword.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A survey database contains thousands of responses, and the user wants a maintainable way to search and report keyword matches without creating a separate field for each keyword.
- Observed behavior
- The goal is to store each response-keyword match as a separate record and use those records to identify matched responses.
Confirm that your survey table has a unique response ID and identify the field containing the response text. The example uses SurveyTable, ResponseID, and Feature; replace these names with your own.
Store keyword matches in a child table with an append query
Use this approach to search for one keyword at a time and store each match as a separate record.
A child table keeps the design tall and narrow: one response can have multiple keyword matches without requiring a new column for every keyword.
In Access, select Create > Table Design. Create tblKeywords with KeywordID as an AutoNumber primary key, ResponseID as a foreign-key field, and Keyword as Short Text. Make ResponseID compatible with the primary key in SurveyTable; for an AutoNumber primary key, use Number with the Long Integer field size.
Open Database Tools > Relationships, add SurveyTable and tblKeywords, and drag SurveyTable.ResponseID to tblKeywords.ResponseID. Select Enforce Referential Integrity when available, then select Create.
Create or open a form in Design View, add a text box, and name it txtKeyword in its Property Sheet. Save the form as formname, or replace formname in the query with your form's actual name.
Select Create > Query Design, switch to SQL View, and enter: INSERT INTO tblKeywords (ResponseID, Keyword) SELECT ResponseID, Forms!formname!txtKeyword FROM SurveyTable WHERE Feature Like '*' & Forms!formname!txtKeyword & '*'; Save the query and substitute your actual table, field, form, and control names.
Open the form, enter a nonblank keyword in txtKeyword, and run the saved query. Confirm the append prompt, then open tblKeywords to review the response IDs and keywords that were saved.
Select Create > Query Design, add SurveyTable and tblKeywords, and include the response ID, response text, and Keyword fields. The joined records show matched responses and their keywords; use Create > Query Wizard > Find Unmatched Query Wizard to find responses without a saved match.

Review exported survey responses in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for an easy move between office suites. Export Access data to Excel first, then use WPS Spreadsheets to review and filter the responses; WPS does not run Access database queries.

Frequently Asked Questions
Why should I store keywords as records rather than fields?
A child table can store multiple keywords for each response without adding a new column whenever a keyword changes. Join it to the survey table by ResponseID to report matches.
Can I search for partial words in Access?
Yes. In the append query, Like '*' & Forms!formname!txtKeyword & '*' matches text containing the entered value. If the database uses ANSI-92 query mode, use % instead of *.
How do I find responses that have no recorded match?
Choose Create > Query Wizard > Find Unmatched Query Wizard. Select the survey table and the match table, then link their ResponseID fields. The result shows responses without any saved keyword match.
What happens if I run the same keyword search twice?
The append query can insert duplicate response-keyword records. Check tblKeywords before rerunning a search, or design a duplicate-prevention rule for your database.
Can I classify matches as exact or informational?
Yes. Open tblKeywords in Design View and add a field such as MatchType. Update the append query or edit the records to supply a classification; the example query only records the keyword and response ID.




