Others

Find and Flag Keywords in Microsoft Access Survey Responses

Kushani NimanthikaKushani Nimanthika Nov 22, 2026 870 views

Question details

Find keywords in survey response text and record which responses contain each keyword.

Find and Flag Keywords in Microsoft Access Survey Responses
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.
Before you start

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.

Solution 1Recommended

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.

1
Create the match table

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.

2
Link the tables

Open Database Tools > Relationships, add SurveyTable and tblKeywords, and drag SurveyTable.ResponseID to tblKeywords.ResponseID. Select Enforce Referential Integrity when available, then select Create.

3
Add a keyword input

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.

4
Create the append query

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.

5
Run the search

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.

6
Report the matches

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.

Store keyword matches in a child table with an append query
Check repeated searches and wildcard settings: Running the same append query again can create duplicate match records. The example uses the usual Access * wildcard; databases using ANSI-92 query mode use % instead. Wildcard characters in the entered keyword can also affect matching.
Free Microsoft Office alternative

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.

Filter exported survey responses in WPS SpreadsheetsOpen and edit Microsoft Excel XLSX filesUse a familiar spreadsheet interfaceWork with a free, lightweight office suite
microsoft office alternative - wps office

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.