The information in this article applies to:
Novice: Requires knowledge of the user interface on single-user computers. This article applies only to a Microsoft Access database (.mdb). SUMMARYWhen you filter a table to eliminate duplicate data, use a query that uses one of the aggregate (totals) functions, such as First(), Last(), Min(), or Max(), in the fields that do not contain duplicate data. In the fields that do contain duplicate data, use the GroupBy() function. MORE INFORMATION
For example, suppose you import an inventory table from an application and
discover that the data has duplicates in it. To get the data back down to a baseline, such as one record per product, so that you can then re-inventory and have a correct and complete set of data, use a query to filter the data.
If you want to filter the table so that it has a unique ProdID code and the first entry from each of the other fields, do the following:
To obtain different results, use the Max(), Min(), or Last() function instead of the First function().
To generate a unique table from this query, change the query type to a make-table query in Design view of the query. NOTE: This query returns unique data. To find duplicate records and to edit the records, or to choose which records to keep, use the Find Duplicates Query Wizard. REFERENCESFor more information about using make-table queries, click Microsoft Access Help on the
Help menu, type make table in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned. Additional query words: delete
Keywords : kbdta QryTotal |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |