Selecting Data Using Queries in Microsoft Access 2013

  • 3/15/2013

Eliminating duplicate values

Each row in a database table should contain unique and non-duplicated data. However, because using a query enables you to select only some of the fields, the values in those selected fields can be duplicated. This can be very useful when you are given a table of data from another source outside of Access and you want to identify a unique list of values in a particular field.

For our example, we have a list of Customer records where we have more than one customer in each city and we want to display a list of unique city names.

Eliminate duplicate rows

  1. Select and optionally sort the field.

  2. Eliminate any NULL values by typing Is Not Null in the criteria.

  3. Click Property Sheet to display the Property Sheet, if it is not already shown. If your Property Sheet does not show the properties we have displayed, click anywhere on the gray background to see the query properties; the property sheet can display either query or field properties depending on where you last clicked in the query design tool.

  4. Change the query property Unique Values to Yes.