The information in this article applies to:
SUMMARY
Moderate: Requires basic macro, coding, and interoperability skills.
MORE INFORMATION
The DISTINCTROW predicate is the SQL equivalent of setting the
UniqueRecords property in a query to Yes. In Microsoft Access 97, the
default setting for the UniqueRecords property in a query is No, which
eliminates DISTINCTROW from the query's SQL statement. In Microsoft Access
2.0 and 7.0, the default setting for the UniqueRecords property is Yes,
which adds DISTINCTROW to the query's SQL statement.
Update QueriesIf you run an update query that you imported from a Microsoft Access 2.0 or 7.0 database, or if you run an existing update query in a database that you converted in Microsoft Access 97 from an earlier version, you may receive the following error message:
To resolve this error message, set the query's UniqueRecords property to No, as follows:
Delete QueriesWhen a delete query contains more than one table, such as a query that deletes duplicate records from one of the tables, the UniqueRecords property must be set to Yes for all versions of Microsoft Access. However, because the default value for UniqueRecords is No in Microsoft Access 97, you must set the value of this property manually when you create a new delete query in Microsoft Access 97, as follows:
Q98664 ACC: Deleting Duplicate Records from Two Tables Select QueriesSome select queries that are updatable in Microsoft Access 2.0 or 7.0 may display the following information on the message line when you try to update them in Microsoft Access 97:
To resolve this error message, set the query's UniqueRecords property to No, as follows:
REFERENCESFor more information about the DISTINCTROW and DISTINCT predicates, search the Help Index for "DISTINCTROW predicate" or "DISTINCT predicate."
Keywords : kberrmsg QryProb |
Last Reviewed: April 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |